From: Eric W. <war...@us...> - 2001-11-29 08:39:59
|
Update of /cvsroot/gaim/gaim/src/protocols/yahoo In directory usw-pr-cvs1:/tmp/cvs-serv16049/protocols/yahoo Modified Files: yahoo.c Log Message: helps to nul-terminate strings. Index: yahoo.c =================================================================== RCS file: /cvsroot/gaim/gaim/src/protocols/yahoo/yahoo.c,v retrieving revision 1.20 retrieving revision 1.21 diff -u -d -r1.20 -r1.21 --- yahoo.c 2001/11/27 23:55:50 1.20 +++ yahoo.c 2001/11/29 08:39:55 1.21 @@ -479,12 +479,15 @@ m = msg; for (i = 0, j = 0; m[i]; i++) { if (m[i] == 033) { - while (m[i] != 'm') + while (m[i] && (m[i] != 'm')) i++; + if (!m[i]) + i--; continue; } msg[j++] = m[i]; } + msg[j] = 0; serv_got_im(gc, from, msg, 0, tm); } else if (pkt->status == 2) { do_error_dialog(_("Your message did not get sent."), _("Gaim - Error")); |