Mercurial > pidgin
diff src/proxy.c @ 5435:a2f26666de42
[gaim-migrate @ 5817]
Phroggie says windows doesn't have a z modifier, so I'm just going to
change size_t to an int, since it really doesn't matter.
I also changed some sprintf's to snprintf's, I'm not really sure why.
Changed a printf to gaim_debug in oscar.c, I don't know how that got
in there. And I applied a patch that adds an optional callback thing
for when a connection is closed. Gaim doesn't use it, but the guy
that submitted the patch said it was useful to him.
committer: Tailor Script <tailor@pidgin.im>
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Sun, 18 May 2003 19:13:21 +0000 |
parents | 8d8bf0d31a23 |
children | 6f35b80c5ffa |
line wrap: on
line diff
--- a/src/proxy.c Sun May 18 18:34:01 2003 +0000 +++ b/src/proxy.c Sun May 18 19:13:21 2003 +0000 @@ -333,11 +333,11 @@ { const char *message = "Gaim's DNS child got a SIGTRAP signal. \n" - "This can be caused by trying to run gaim into gdb.\n" - "There's a known gdb bug which prevent this, supposedly gaim\n" - "should have detected you were using gdb and use an ugly hack,\n" + "This can be caused by trying to run gaim inside gdb.\n" + "There is a known gdb bug which prevents this. Supposedly gaim\n" + "should have detected you were using gdb and used an ugly hack,\n" "check cope_with_gdb_brokenness() in proxy.c.\n\n" - "For more info about the bug check http://sources.redhat.com/ml/gdb/2001-07/msg00349.html\n"; + "For more info about this bug, see http://sources.redhat.com/ml/gdb/2001-07/msg00349.html\n"; fputs("\n* * *\n",stderr); fputs(message,stderr); fputs("* * *\n\n",stderr); @@ -357,7 +357,7 @@ return; already_done = TRUE; ppid = getppid(); - sprintf(s,"/proc/%d/exe", ppid); + snprintf(s, 300, "/proc/%d/exe", ppid); n = readlink(s, e, sizeof(e)); e[MAX(n,sizeof(e)-1)] = '\0';