$Log$
+ Revision 600.2 2002/09/08 03:48:48 ajc
+ * Fixed a crashy crashy bug in the AGUP protocol function in the client
+
Revision 600.1 2002/09/07 03:24:23 ajc
* When displaying messages using MSG4, enumerate the attachments on the
client side, because the server won't add their descriptions to the
Fri Jul 10 1998 Art Cancro <ajc@uncensored.citadel.org>
* Initial CVS import
-
struct usersupp **uret, char *cret)
{
register int ret;
- char *aaa;
+ char aaa[SIZ];
if (!cret) return -2;
if (!uret) return -2;
if (!*uret) *uret = (struct usersupp *)calloc(1, sizeof(struct usersupp));
if (!*uret) return -1;
- aaa = (char *)malloc(strlen(uret[0]->fullname) + 6);
- if (!aaa) return -1;
-
sprintf(aaa, "AGUP %s", who);
ret = CtdlIPCGenericCommand(aaa, NULL, 0, NULL, NULL, cret);
+
if (ret / 100 == 2) {
extract(uret[0]->fullname, cret, 0);
extract(uret[0]->password, cret, 1);
uret[0]->lastcall = extract_long(cret, 7);
uret[0]->USuserpurge = extract_int(cret, 8);
}
- free(aaa);
return ret;
}