From: Lutz M. <lu...@us...> - 2004-06-22 18:25:52
|
Update of /cvsroot/libexif/libexif/libexif/olympus In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv10042/libexif/olympus Modified Files: mnote-olympus-entry.c Log Message: 2004-06-22 Lutz Mueller <lu...@us...> * libexif/olympus/mnote-olympus-entry.c: Correct the usage of strncat. Fix pointed out by Serge Droz <ser...@ps...>. Index: mnote-olympus-entry.c =================================================================== RCS file: /cvsroot/libexif/libexif/libexif/olympus/mnote-olympus-entry.c,v retrieving revision 1.14 retrieving revision 1.15 diff -u -d -r1.14 -r1.15 --- mnote-olympus-entry.c 15 Jun 2004 16:21:56 -0000 1.14 +++ mnote-olympus-entry.c 22 Jun 2004 18:25:40 -0000 1.15 @@ -164,7 +164,7 @@ char * mnote_olympus_entry_get_value (MnoteOlympusEntry *entry, char *v, unsigned int maxlen) { - char buf[32]; + char buf[300]; ExifLong vl; ExifShort vs = 0; ExifRational vr; @@ -528,7 +528,7 @@ entry->size); for (i = 0; i < entry->size; i++) { sprintf (buf, " %02x", entry->data[i]); - strncat (v, buf, maxlen - strlen (v)); + strncat (v, buf, maxlen); } break; } |