summaryrefslogtreecommitdiff
path: root/graphics/gphoto/patches/patch-au
blob: 4b4107825b5136eb037fa6ed02ded7b8ce6cd202 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
$NetBSD: patch-au,v 1.2 2005/11/05 18:58:04 kristerw 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);