Mercurial > pidgin.yaz
comparison libfaim/aim_login.c @ 771:72e556f6b99d
[gaim-migrate @ 781]
libfaim gets warnings, and other minor changes
committer: Tailor Script <tailor@pidgin.im>
author | Eric Warmenhoven <eric@warmenhoven.org> |
---|---|
date | Mon, 28 Aug 2000 05:07:43 +0000 |
parents | 58a6e6e26695 |
children | 595ac7759563 |
comparison
equal
deleted
inserted
replaced
770:172c5cf98dfa | 771:72e556f6b99d |
---|---|
304 int keylen; | 304 int keylen; |
305 int ret = 1; | 305 int ret = 1; |
306 rxcallback_t userfunc; | 306 rxcallback_t userfunc; |
307 | 307 |
308 keylen = aimutil_get16(command->data+10); | 308 keylen = aimutil_get16(command->data+10); |
309 key = malloc(keylen+1); | 309 if (!(key = malloc(keylen+1))) |
310 return ret; | |
310 memcpy(key, command->data+12, keylen); | 311 memcpy(key, command->data+12, keylen); |
311 key[keylen] = '\0'; | 312 key[keylen] = '\0'; |
312 | 313 |
313 if ((userfunc = aim_callhandler(command->conn, 0x0017, 0x0007))) | 314 if ((userfunc = aim_callhandler(command->conn, 0x0017, 0x0007))) |
314 ret = userfunc(sess, command, key); | 315 ret = userfunc(sess, command, key); |