summaryrefslogtreecommitdiff
path: root/graphics/gphoto/patches/patch-au
diff options
context:
space:
mode:
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);