Mercurial > pidgin
comparison libpurple/protocols/gg/lib/pubdir.c @ 32819:2c6510167895 default tip
propagate from branch 'im.pidgin.pidgin.2.x.y' (head 3315c5dfbd0ad16511bdcf865e5b07c02d07df24)
to branch 'im.pidgin.pidgin' (head cbd1eda6bcbf0565ae7766396bb8f6f419cb6a9a)
author | Elliott Sales de Andrade <qulogic@pidgin.im> |
---|---|
date | Sat, 02 Jun 2012 02:30:49 +0000 |
parents | e2ff2ac0e022 |
children |
comparison
equal
deleted
inserted
replaced
32818:01ff09d4a463 | 32819:2c6510167895 |
---|---|
33 #include <stdlib.h> | 33 #include <stdlib.h> |
34 #include <string.h> | 34 #include <string.h> |
35 #include <unistd.h> | 35 #include <unistd.h> |
36 | 36 |
37 #include "libgadu.h" | 37 #include "libgadu.h" |
38 #include "libgadu-config.h" | |
39 | 38 |
40 /** | 39 /** |
41 * Rejestruje nowego użytkownika. | 40 * Rejestruje nowego użytkownika. |
42 * | 41 * |
43 * Wymaga wcześniejszego pobrania tokenu za pomocą \c gg_token(). | 42 * Wymaga wcześniejszego pobrania tokenu za pomocą \c gg_token(). |
192 gg_debug(GG_DEBUG_MISC, "=> unregister, NULL parameter\n"); | 191 gg_debug(GG_DEBUG_MISC, "=> unregister, NULL parameter\n"); |
193 errno = EFAULT; | 192 errno = EFAULT; |
194 return NULL; | 193 return NULL; |
195 } | 194 } |
196 | 195 |
197 __pwd = gg_saprintf("%ld", random()); | 196 __pwd = gg_saprintf("%d", rand()); |
198 __fmpwd = gg_urlencode(password); | 197 __fmpwd = gg_urlencode(password); |
199 __tokenid = gg_urlencode(tokenid); | 198 __tokenid = gg_urlencode(tokenid); |
200 __tokenval = gg_urlencode(tokenval); | 199 __tokenval = gg_urlencode(tokenval); |
201 | 200 |
202 if (!__fmpwd || !__pwd || !__tokenid || !__tokenval) { | 201 if (!__fmpwd || !__pwd || !__tokenid || !__tokenval) { |