Mercurial > pidgin.yaz
comparison src/protocols/napster/napster.c @ 9040:3f6d795d67d5
[gaim-migrate @ 9816]
(16:10:42) SimGuy: LSchiere2: check napster.c for a comment about string freeze
committer: Tailor Script <tailor@pidgin.im>
author | Luke Schierer <lschiere@pidgin.im> |
---|---|
date | Sun, 23 May 2004 20:12:36 +0000 |
parents | 7ab20f829190 |
children | 7a8aa87164ae |
comparison
equal
deleted
inserted
replaced
9039:bf4ecb0ae208 | 9040:3f6d795d67d5 |
---|---|
238 i = 0; | 238 i = 0; |
239 do { | 239 do { |
240 int tmp = read(source, buf + i, len - i); | 240 int tmp = read(source, buf + i, len - i); |
241 if (tmp <= 0) { | 241 if (tmp <= 0) { |
242 g_free(buf); | 242 g_free(buf); |
243 buf = g_strdup_printf(_("Unable to read message from server. Command is %hd, length is %hd."), len, command); | 243 buf = g_strdup_printf(_("Unable to read message from server: %s. Command is %hd, length is %hd."), strerror(errno), len, command); |
244 /* Change this to use the line below when we're not in string freeze */ | |
245 /* buf = g_strdup_printf(_("Unable to read message from server: %s. Command is %hd, length is %hd."), strerror(errno), len, command); */ | |
246 gaim_connection_error(gc, buf); | 244 gaim_connection_error(gc, buf); |
247 g_free(buf); | 245 g_free(buf); |
248 return; | 246 return; |
249 } | 247 } |
250 i += tmp; | 248 i += tmp; |