summaryrefslogtreecommitdiff
path: root/graphics/gphoto/patches/patch-au
diff options
context:
space:
mode:
authorcube <cube@pkgsrc.org>2004-01-19 15:52:40 +0000
committercube <cube@pkgsrc.org>2004-01-19 15:52:40 +0000
commit184b926ff54d65fa57432d5a75df6dfa78756559 (patch)
treecd38eeaa0dcda8a10169fc2616a521b5bbe6b176 /graphics/gphoto/patches/patch-au
parentf5956437afbc9874211ed26d0250858df662fc98 (diff)
downloadpkgsrc-184b926ff54d65fa57432d5a75df6dfa78756559.tar.gz
Make this compile with gcc3. Should fix PR 24151.
Diffstat (limited to 'graphics/gphoto/patches/patch-au')
-rw-r--r--graphics/gphoto/patches/patch-au19
1 files changed, 19 insertions, 0 deletions
diff --git a/graphics/gphoto/patches/patch-au b/graphics/gphoto/patches/patch-au
new file mode 100644
index 00000000000..431805fe843
--- /dev/null
+++ b/graphics/gphoto/patches/patch-au
@@ -0,0 +1,19 @@
+$NetBSD: patch-au,v 1.1 2004/01/19 15:52:40 cube Exp $
+
+--- sony/command.c.orig 1999-05-27 20:32:06.000000000 +0200
++++ sony/command.c
+@@ -288,11 +288,11 @@ char* return_buf;
+ break;
+ }
+ sprintf(tmp_buf, "Total Pictures: %02d\n", pic_num);
+- strcat(status_buf, tmp_buf, sizeof(tmp_buf));
++ strlcat(status_buf, tmp_buf, sizeof(tmp_buf));
+ sprintf(tmp_buf, "Date: %02d/%02d/%02d\n", month, date, year);
+- strcat(status_buf, tmp_buf, sizeof(tmp_buf));
++ strlcat(status_buf, tmp_buf, sizeof(tmp_buf));
+ sprintf(tmp_buf, "Time: %02d:%02d\n",hour, minutes);
+- strcat(status_buf, tmp_buf, sizeof(tmp_buf));
++ strlcat(status_buf, tmp_buf, sizeof(tmp_buf));
+ }
+ /* return (buf[2]); ok*/
+ strcpy(return_buf, status_buf);