comparison libpurple/protocols/simple/simple.c @ 17545:cd2a9f9ca378

Fix a freeze caused by improper SIMPLE message parsing. Thanks, Michal Matyska! Fixes #1037
author Sean Egan <seanegan@gmail.com>
date Fri, 08 Jun 2007 20:53:59 +0000
parents 2e4e3c3028ae
children 16bdcffb1c62
comparison
equal deleted inserted replaced
17544:5eebb9b24e30 17545:cd2a9f9ca378
1241 foundpidf = TRUE; 1241 foundpidf = TRUE;
1242 if(!g_ascii_strcasecmp("application/xpidf+xml", tmp)) 1242 if(!g_ascii_strcasecmp("application/xpidf+xml", tmp))
1243 foundxpidf = TRUE; 1243 foundxpidf = TRUE;
1244 if(tmp2) { 1244 if(tmp2) {
1245 *tmp2 = ','; 1245 *tmp2 = ',';
1246 tmp = tmp2; 1246 tmp = tmp2 + 1;
1247 while(*tmp == ' ') tmp++; 1247 while(*tmp == ' ') tmp++;
1248 } else 1248 } else
1249 tmp = 0; 1249 tmp = 0;
1250 } 1250 }
1251 if(!foundpidf && foundxpidf) needsxpidf = TRUE; 1251 if(!foundpidf && foundxpidf) needsxpidf = TRUE;