$Log$
+Revision 654.21 2005/09/01 22:07:08 ajc
+* citserver.c: change to usage of strdup() to work on RH9 where it's
+ a macro
+
Revision 654.20 2005/08/29 20:49:50 ajc
* imap_fetch.c: fixed a bug in the IMAP FETCH BODY code that was causing the
"most recently fetched message" cache to be burned even when it shouldn't
Fri Jul 10 1998 Art Cancro <ajc@uncensored.citadel.org>
* Initial CVS import
-
extract_token(buf, mname, 0, '|', sizeof buf);
- dirs[0] = strdup(
#ifdef HAVE_DATA_DIR
- DATA_DIR"/"
+ dirs[0] = strdup(DATA_DIR "/messages");
+#else
+ dirs[0] = strdup("messages");
#endif
- "messages");
- dirs[1] = strdup(
+
#ifdef HAVE_DATA_DIR
- DATA_DIR"/"
+ dirs[1] = strdup(DATA_DIR "/help");
+#else
+ dirs[1] = strdup("help");
#endif
- "help");
+
snprintf(buf2, sizeof buf2, "%s.%d.%d",
buf, CC->cs_clientdev, CC->cs_clienttyp);
if (buf[a] == '/') buf[a] = '.';
}
- dirs[0] = strdup(
#ifdef HAVE_DATA_DIR
- DATA_DIR"/"
+ dirs[0] = strdup(DATA_DIR "/messages");
+#else
+ dirs[0] = strdup("messages");
#endif
- "messages");
- dirs[1] = strdup(
+
#ifdef HAVE_DATA_DIR
- DATA_DIR"/"
+ dirs[1] = strdup(DATA_DIR "/help");
+#else
+ dirs[1] = strdup("help");
#endif
- "help");
+
mesg_locate(targ, sizeof targ, buf, 2, (const char**)dirs);
free(dirs[0]);
free(dirs[1]);