From: Lutz M. <lu...@us...> - 2004-06-23 17:35:36
|
Update of /cvsroot/libexif/libexif/libexif/olympus In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv21649/libexif/olympus Modified Files: mnote-olympus-entry.c Log Message: 2004-06-23 Serge Droz <ser...@ps...> (committed by Lutz Mueller <lu...@us...>) * libexif/olympus/mnote-olympus-entry.c: Reapply Jan Patera's change. Index: mnote-olympus-entry.c =================================================================== RCS file: /cvsroot/libexif/libexif/libexif/olympus/mnote-olympus-entry.c,v retrieving revision 1.15 retrieving revision 1.16 diff -u -d -r1.15 -r1.16 --- mnote-olympus-entry.c 22 Jun 2004 18:25:40 -0000 1.15 +++ mnote-olympus-entry.c 23 Jun 2004 17:35:27 -0000 1.16 @@ -164,7 +164,7 @@ char * mnote_olympus_entry_get_value (MnoteOlympusEntry *entry, char *v, unsigned int maxlen) { - char buf[300]; + char buf[30]; ExifLong vl; ExifShort vs = 0; ExifRational vr; @@ -524,11 +524,11 @@ break; case EXIF_FORMAT_UNDEFINED: default: - snprintf (v, maxlen, "%li bytes unknown data:", + snprintf (v, maxlen, _("%li bytes unknown data: "), entry->size); for (i = 0; i < entry->size; i++) { - sprintf (buf, " %02x", entry->data[i]); - strncat (v, buf, maxlen); + sprintf (buf, "%02x", entry->data[i]); + strncat (v, buf, maxlen - strlen (v)); } break; } |