Mercurial > pidgin
diff src/conversation.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 | dead1eb6d654 |
children | 7a24bb75a97b |
line wrap: on
line diff
--- a/src/conversation.c Fri Mar 31 20:22:12 2000 +0000 +++ b/src/conversation.c Wed Apr 05 05:34:08 2000 +0000 @@ -325,9 +325,8 @@ static void send_callback(GtkWidget *widget, struct conversation *c) { - char buf[BUF_LONG]; + char buf[BUF_LEN*4]; char *buf2; - char *buf3; gchar *buf4; int hdrlen; @@ -349,7 +348,6 @@ * measure = 23 bytes + the length of normalize c->name */ buf2 = g_malloc(BUF_LONG); - buf3 = g_malloc(BUF_LONG); hdrlen = 23 + strlen(normalize(c->name)); @@ -404,7 +402,6 @@ gtk_widget_grab_focus(c->entry); g_free(buf2); - g_free(buf3); }