From: Sebastian B. <sb...@us...> - 2013-12-06 21:12:39
|
Update of /cvsroot/simplemail/simplemail In directory sfp-cvs-1.v30.ch3.sourceforge.com:/tmp/cvs-serv28911 Modified Files: codesets.c Log Message: Function utf8fromstr() did not work at all. Fixed. Index: codesets.c =================================================================== RCS file: /cvsroot/simplemail/simplemail/codesets.c,v retrieving revision 1.59 retrieving revision 1.60 diff -u -d -r1.59 -r1.60 --- codesets.c 15 Dec 2012 06:10:47 -0000 1.59 +++ codesets.c 6 Dec 2013 21:12:37 -0000 1.60 @@ -1374,6 +1374,9 @@ unsigned char c; int conv = 0; + if (dest_size < 1) + return 0; + if (!codeset) codeset = (struct codeset*)list_first(&codesets_list); @@ -1392,7 +1395,7 @@ utf8_seq++; for(;(c = *utf8_seq);utf8_seq++) - *dest = c; + *dest++ = c; dest_size -= l; conv++; |