comparison libpurple/plugins/log_reader.c @ 24425:f3c48d7db093

Fix CID #367
author Richard Laager <rlaager@wiktel.com>
date Fri, 14 Nov 2008 06:44:44 +0000
parents 750f9b4d8547
children 8d1e8060b1d8
comparison
equal deleted inserted replaced
24424:2d677e8fe6d0 24425:f3c48d7db093
1969 /* Apply formatting... */ 1969 /* Apply formatting... */
1970 formatted = g_string_sized_new(data->length + 2); 1970 formatted = g_string_sized_new(data->length + 2);
1971 c = contents; 1971 c = contents;
1972 line = contents; 1972 line = contents;
1973 1973
1974 while (*c) { 1974 while (c && *c) {
1975 gboolean is_in_message = FALSE; 1975 gboolean is_in_message = FALSE;
1976 1976
1977 if (purple_str_has_prefix(line, QIP_LOG_IN_MESSAGE_ESC) || 1977 if (purple_str_has_prefix(line, QIP_LOG_IN_MESSAGE_ESC) ||
1978 purple_str_has_prefix(line, QIP_LOG_OUT_MESSAGE_ESC)) { 1978 purple_str_has_prefix(line, QIP_LOG_OUT_MESSAGE_ESC)) {
1979 1979