diff options
author | Marcus Meissner <marcus@jet.franken.de> | 2018-07-21 17:49:44 +0200 |
---|---|---|
committer | Marcus Meissner <marcus@jet.franken.de> | 2018-07-21 17:49:44 +0200 |
commit | 14c08fec614304a2c2d85f38d99d239c747bcfe1 (patch) | |
tree | d35af1d9f5db6bcb5514ea2ab7e1e4f1ac6fb306 /camlibs/sonydscf1 | |
parent | 7245ca382216f028668e06175ffe8c80e3652687 (diff) | |
download | libgphoto2-14c08fec614304a2c2d85f38d99d239c747bcfe1.tar.gz |
replace buggy strncat usage by just strcat. we have enough buffer space
Diffstat (limited to 'camlibs/sonydscf1')
-rw-r--r-- | camlibs/sonydscf1/command.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/camlibs/sonydscf1/command.c b/camlibs/sonydscf1/command.c index b13d5d749..5caf2d678 100644 --- a/camlibs/sonydscf1/command.c +++ b/camlibs/sonydscf1/command.c @@ -177,11 +177,11 @@ char F1newstatus(GPPort *port, int verbose, char *return_buf) break; } sprintf(tmp_buf, "Total Pictures: %02d\n", pic_num); - strncat(status_buf, tmp_buf, sizeof(status_buf)); + strcat(status_buf, tmp_buf); sprintf(tmp_buf, "Date: %02d/%02d/%02d\n", month, date, year); - strncat(status_buf, tmp_buf, sizeof(status_buf)); + strcat(status_buf, tmp_buf); sprintf(tmp_buf, "Time: %02d:%02d\n",hour, minutes); - strncat(status_buf, tmp_buf, sizeof(status_buf)); + strcat(status_buf, tmp_buf); } strcpy(return_buf, status_buf); |