Mercurial > pidgin.yaz
comparison src/oscar.c @ 79:bfdc427b936d
[gaim-migrate @ 89]
I'll save time and just post the email :-)
Summary of changes:
* Misc malloc/free cleanups, use g_malloc more places and
other small stuff (e.g. lineardata not being freed in the
error case in sound.c)
* Misc signed/unsigned cleanups (use size_t more often)
* read() can return -1 at any point, check return values
more rigorously (read_rv variables used for this)
* In can_play_audio, stat requires a pointer to an
allocated stat_buf (the address of an automatic variable)
* escape_text needs a buffer at least 4 times the size of
the text being passed in (not 2 times); I can force core
dumps with lots of newlines otherwise
* There's a debug statement in netscape_command
(browser.c) that was printf("Hello%d\n"); with no int for
the %d; I threw in a getppid(), but the statement should
probably come out eventually.
Thanks, G Sumner Hayes!
committer: Tailor Script <tailor@pidgin.im>
author | Rob Flynn <gaim@robflynn.com> |
---|---|
date | Wed, 05 Apr 2000 05:34:08 +0000 |
parents | e16ad7d73cd6 |
children | 6ced2f1c8b24 |
comparison
equal
deleted
inserted
replaced
78:66c5a24b62ec | 79:bfdc427b936d |
---|---|
284 | 284 |
285 switch(serviceid) { | 285 switch(serviceid) { |
286 case 0x0005: { | 286 case 0x0005: { |
287 char *buf; | 287 char *buf; |
288 char *buf2; | 288 char *buf2; |
289 char *first = g_malloc(64); | |
290 char file[1024]; | 289 char file[1024]; |
291 FILE *f; | 290 FILE *f; |
292 | 291 |
293 g_snprintf(file, sizeof(file), "%s/.gaimbuddy", getenv("HOME")); | 292 g_snprintf(file, sizeof(file), "%s/.gaimbuddy", getenv("HOME")); |
294 | 293 |