comparison libpurple/protocols/msn/httpconn.c @ 24388:7e8175f9b009

It should be more efficient to just use g_mallc() and then manually null terminate the buffer, right?
author Mark Doliner <mark@kingant.net>
date Wed, 12 Nov 2008 09:40:05 +0000
parents 3520b566ce25
children 9bdaf273c0ff
comparison
equal deleted inserted replaced
24387:3520b566ce25 24388:7e8175f9b009
155 155
156 return FALSE; 156 return FALSE;
157 } 157 }
158 } 158 }
159 159
160 body = g_malloc0(body_len + 1); 160 body = g_malloc(body_len + 1);
161 memcpy(body, body_start, body_len); 161 memcpy(body, body_start, body_len);
162 body[body_len] = '\0';
162 163
163 #ifdef MSN_DEBUG_HTTP 164 #ifdef MSN_DEBUG_HTTP
164 purple_debug_misc("msn", "Incoming HTTP buffer (header): {%s\r\n}\n", 165 purple_debug_misc("msn", "Incoming HTTP buffer (header): {%s\r\n}\n",
165 header); 166 header);
166 #endif 167 #endif