From 7e575ae7425cf0ad8ab7d848bb0f1c2366814191 Mon Sep 17 00:00:00 2001 From: Cy Schubert Date: Sat, 30 Jun 2012 02:14:20 +0000 Subject: Fix segmentation fault. --- sysutils/hdrecover/files/patch-hdrecover.cpp | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'sysutils/hdrecover/files/patch-hdrecover.cpp') diff --git a/sysutils/hdrecover/files/patch-hdrecover.cpp b/sysutils/hdrecover/files/patch-hdrecover.cpp index 84daf5bd6d1f..9f8f937632a7 100644 --- a/sysutils/hdrecover/files/patch-hdrecover.cpp +++ b/sysutils/hdrecover/files/patch-hdrecover.cpp @@ -1,5 +1,5 @@ --- hdrecover.cpp.orig 2011-09-25 04:48:10.000000000 -0700 -+++ hdrecover.cpp 2012-06-29 12:07:43.004361705 -0700 ++++ hdrecover.cpp 2012-06-29 16:02:39.000000000 -0700 @@ -26,7 +26,11 @@ #include #include @@ -12,3 +12,12 @@ #include #include #include +@@ -260,7 +264,7 @@ + sprintf(p, "%d seconds", remaining); + } + printf("Sector %Ld (%02d%%) ETR: %s\n", +- sectornum, (int) ((sectornum * 100) / length), rs); ++ (long) sectornum, (long int) ((sectornum * 100) / length), rs); + } + } + -- cgit v1.2.3