summaryrefslogtreecommitdiff
path: root/sysutils/hdrecover/files/patch-hdrecover.cpp
diff options
context:
space:
mode:
authorCy Schubert <cy@FreeBSD.org>2012-06-30 02:14:20 +0000
committerCy Schubert <cy@FreeBSD.org>2012-06-30 02:14:20 +0000
commit7e575ae7425cf0ad8ab7d848bb0f1c2366814191 (patch)
tree22f9a2b5254b775391ed005446d8a0f82029042c /sysutils/hdrecover/files/patch-hdrecover.cpp
parent- Convert to new options framework (diff)
Fix segmentation fault.
Notes
Notes: svn path=/head/; revision=300236
Diffstat (limited to 'sysutils/hdrecover/files/patch-hdrecover.cpp')
-rw-r--r--sysutils/hdrecover/files/patch-hdrecover.cpp11
1 files changed, 10 insertions, 1 deletions
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 <sys/stat.h>
#include <fcntl.h>
@@ -12,3 +12,12 @@
#include <errno.h>
#include <string.h>
#include <time.h>
+@@ -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);
+ }
+ }
+