diff options
author | cy <cy@FreeBSD.org> | 2012-06-30 10:14:20 +0800 |
---|---|---|
committer | cy <cy@FreeBSD.org> | 2012-06-30 10:14:20 +0800 |
commit | 474c082cf36563a167db2a6fc03106a6dfdff115 (patch) | |
tree | 24e7a79f1b7a3779d6a230533b4171fda3dd81e0 /sysutils | |
parent | a9d7f5c2c8b3d36782a1147988ec704a96d3051a (diff) | |
download | freebsd-ports-gnome-474c082cf36563a167db2a6fc03106a6dfdff115.tar.gz freebsd-ports-gnome-474c082cf36563a167db2a6fc03106a6dfdff115.tar.zst freebsd-ports-gnome-474c082cf36563a167db2a6fc03106a6dfdff115.zip |
Fix segmentation fault.
Diffstat (limited to 'sysutils')
-rw-r--r-- | sysutils/hdrecover/Makefile | 1 | ||||
-rw-r--r-- | sysutils/hdrecover/files/patch-hdrecover.cpp | 11 |
2 files changed, 11 insertions, 1 deletions
diff --git a/sysutils/hdrecover/Makefile b/sysutils/hdrecover/Makefile index 55dd007cc65d..257aaa688cf5 100644 --- a/sysutils/hdrecover/Makefile +++ b/sysutils/hdrecover/Makefile @@ -7,6 +7,7 @@ PORTNAME= hdrecover PORTVERSION= 0.4 +PORTREVISION= 1 CATEGORIES= sysutils MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/${PORTNAME}-${PORTVERSION} 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); + } + } + |