From: Lutz M?l. <lu...@us...> - 2003-09-30 22:53:41
|
Update of /cvsroot/libexif/exif/exif In directory sc8-pr-cvs1:/tmp/cvs-serv20274/exif Modified Files: exif-i18n.c Log Message: 2003-10-01 Lutz Mueller <lu...@us...> * exif/exif-i18n.c: Patch to fix 64bit related crash by Marcus Meissner (#784852). Index: exif-i18n.c =================================================================== RCS file: /cvsroot/libexif/exif/exif/exif-i18n.c,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- exif-i18n.c 5 May 2003 21:13:44 -0000 1.1 +++ exif-i18n.c 30 Sep 2003 22:53:37 -0000 1.2 @@ -3,6 +3,7 @@ #include <iconv.h> #include <string.h> +#include <sys/types.h> #undef MIN #define MIN(a, b) (((a) < (b)) ? (a) : (b)) @@ -11,9 +12,9 @@ exif_i18n_convert_utf8_to_lat1 (const char *in) { static iconv_t tr = 0; - unsigned int t = (in ? strlen (in) : 0); + size_t t = (in ? strlen (in) : 0); static char buf[2048]; - unsigned int buf_size = sizeof (buf); + size_t buf_size = sizeof (buf); char *out = buf; if (!in) return NULL; |