comparison libpurple/protocols/gg/lib/pubdir.c @ 32777:e2ff2ac0e022

Gadu-Gadu: synchronize internal libgadu with upstream - second encounter. Refs #343
author tomkiewicz@cpw.pidgin.im
date Fri, 21 Oct 2011 12:48:30 +0000
parents ef01f180114b
children
comparison
equal deleted inserted replaced
32776:8c71a7e95f16 32777:e2ff2ac0e022
191 gg_debug(GG_DEBUG_MISC, "=> unregister, NULL parameter\n"); 191 gg_debug(GG_DEBUG_MISC, "=> unregister, NULL parameter\n");
192 errno = EFAULT; 192 errno = EFAULT;
193 return NULL; 193 return NULL;
194 } 194 }
195 195
196 __pwd = gg_saprintf("%ld", random()); 196 __pwd = gg_saprintf("%d", rand());
197 __fmpwd = gg_urlencode(password); 197 __fmpwd = gg_urlencode(password);
198 __tokenid = gg_urlencode(tokenid); 198 __tokenid = gg_urlencode(tokenid);
199 __tokenval = gg_urlencode(tokenval); 199 __tokenval = gg_urlencode(tokenval);
200 200
201 if (!__fmpwd || !__pwd || !__tokenid || !__tokenval) { 201 if (!__fmpwd || !__pwd || !__tokenid || !__tokenval) {