diff options
author | Marcus Meissner <marcus@jet.franken.de> | 2004-08-22 22:50:05 +0000 |
---|---|---|
committer | Marcus Meissner <marcus@jet.franken.de> | 2004-08-22 22:50:05 +0000 |
commit | af4e2355c4c56dd845a0aafed605b0888d5a89b5 (patch) | |
tree | 05f51b369c3f824563781c1c37dc04e880aa61d9 /camlibs/gsmart300 | |
parent | c301b4f531cd821b2a9af353ec8bbfe8082bf165 (diff) | |
download | libgphoto2-af4e2355c4c56dd845a0aafed605b0888d5a89b5.tar.gz |
* more safe format string handling.
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@7292 67ed7778-7388-44ab-90cf-0a291f65f57c
Diffstat (limited to 'camlibs/gsmart300')
-rw-r--r-- | camlibs/gsmart300/gsmart300.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/camlibs/gsmart300/gsmart300.c b/camlibs/gsmart300/gsmart300.c index c76e672d4..62102233b 100644 --- a/camlibs/gsmart300/gsmart300.c +++ b/camlibs/gsmart300/gsmart300.c @@ -250,7 +250,7 @@ gsmart300_get_image_thumbnail (CameraPrivateLibrary * lib, uint8_t ** buf, return (GP_ERROR_NO_MEMORY); tmp = *buf; - snprintf (tmp, sizeof (pbm_header), pbm_header); + snprintf (tmp, sizeof (pbm_header), "%s", pbm_header); tmp += sizeof (pbm_header) - 1; yuv_p = mybuf; |