summaryrefslogtreecommitdiff
path: root/print/gv/patches
diff options
context:
space:
mode:
authordrochner <drochner>2010-03-11 12:46:42 +0000
committerdrochner <drochner>2010-03-11 12:46:42 +0000
commitf2f4df06e9bac674be2953f4f0f356d88c422b50 (patch)
tree8a98e5b2ffd3807c14571fb2b0411bc6bce6a217 /print/gv/patches
parenta5bc76a5d575509de3de2092c2361570325ff45b (diff)
downloadpkgsrc-f2f4df06e9bac674be2953f4f0f356d88c422b50.tar.gz
fix a format string mismatch with 64-bit time_t which made the program
crash with PDF files (on NetBSD-current), bump PKGREVISION
Diffstat (limited to 'print/gv/patches')
-rw-r--r--print/gv/patches/patch-ad13
1 files changed, 11 insertions, 2 deletions
diff --git a/print/gv/patches/patch-ad b/print/gv/patches/patch-ad
index 05a61d45955..f017d380bfd 100644
--- a/print/gv/patches/patch-ad
+++ b/print/gv/patches/patch-ad
@@ -1,7 +1,16 @@
-$NetBSD: patch-ad,v 1.5 2006/10/23 12:29:56 tron Exp $
+$NetBSD: patch-ad,v 1.6 2010/03/11 12:46:42 drochner Exp $
---- src/file.c.orig 2005-08-10 13:33:21.000000000 +0200
+--- src/file.c.orig 2005-08-10 11:33:21.000000000 +0000
+++ src/file.c
+@@ -199,7 +199,7 @@ file_getTmpFilename(baseDirectory,baseFi
+ #ifdef VMS
+ sprintf(tempFilename,"%sgv_%lx_%x_%s_%s.tmp",tmpDirBuf,time(NULL),i,tmpName,tmpExt);
+ #else
+- sprintf(tempFilename,"%sgv_%lx_%x_%s.%s.tmp",tmpDirBuf,time(NULL),i,tmpName,tmpExt);
++ sprintf(tempFilename,"%sgv_%llx_%x_%s.%s.tmp",tmpDirBuf,(long long)time(NULL),i,tmpName,tmpExt);
+ #endif
+ file_translateTildeInPath(tempFilename);
+ no_such_file = stat(tempFilename,&s);
@@ -265,6 +265,9 @@ int file_fileIsDir(fn)
/* file_fileIsNotUseful */
/*############################################################*/