$Log$
+ Revision 591.44 2002/06/15 20:14:55 ajc
+ * Fixed a memory allocation bug in the vCard parser
+
Revision 591.43 2002/06/15 17:53:59 error
* citserver.c: MESG command can now send a different system message based
on the developer and client ID of the connected client
Fri Jul 10 1998 Art Cancro <ajc@uncensored.citadel.org>
* Initial CVS import
+
colonpos = pattern2(ptr, ":");
nlpos = pattern2(ptr, "\n");
- if (nlpos > colonpos > 0) {
+ if ((nlpos > colonpos) && (colonpos > 0)) {
namebuf = mallok(colonpos + 1);
valuebuf = mallok(nlpos - colonpos + 1);
strncpy(namebuf, ptr, colonpos);