Mercurial > pidgin.yaz
diff src/util.c @ 5532:6f35b80c5ffa
[gaim-migrate @ 5932]
(10:04:36) Robot101: LSchiere: alternative way to deal with the magic number - remove it. doesn't crash
when signing on to a HTTP proxy. also resolves the mysterious "unsigned tmp" which appeared a week or few
ago..
committer: Tailor Script <tailor@pidgin.im>
author | Luke Schierer <lschiere@pidgin.im> |
---|---|
date | Mon, 26 May 2003 14:04:53 +0000 |
parents | 10920646988f |
children | 7a64114641c3 |
line wrap: on
line diff
--- a/src/util.c Mon May 26 12:45:05 2003 +0000 +++ b/src/util.c Mon May 26 14:04:53 2003 +0000 @@ -354,10 +354,7 @@ char *tobase64(const unsigned char *buf, size_t len) { char *s = NULL, *rv = NULL; - unsigned tmp; - - if(len == (size_t)(-1)) - len = strlen(buf); + unsigned char tmp; s = g_malloc((4 * (len + 1)) / 3 + 1);