* citserver.c: change to usage of strdup() to work on RH9 where it's
authorArt Cancro <ajc@citadel.org>
Thu, 1 Sep 2005 22:07:08 +0000 (22:07 +0000)
committerArt Cancro <ajc@citadel.org>
Thu, 1 Sep 2005 22:07:08 +0000 (22:07 +0000)
  a macro

citadel/ChangeLog
citadel/citserver.c

index f979f8917b8c516a113b7d374e6957d297c4bc26..1c45476449d65de9b4b5d95912a6e5e818ac36ee 100644 (file)
@@ -1,4 +1,8 @@
 $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
@@ -7071,4 +7075,3 @@ Sat Jul 11 00:20:48 EDT 1998 Nathan Bryant <bryant@cs.usm.maine.edu>
 
 Fri Jul 10 1998 Art Cancro <ajc@uncensored.citadel.org>
        * Initial CVS import
-
index bc7e493e09c1976d6356d1ebf7b9002145ce3ea8..76e2f258c29eaf43f4a1b29e051979e57af6e38c 100644 (file)
@@ -458,16 +458,18 @@ void cmd_mesg(char *mname)
 
        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);
 
@@ -548,16 +550,18 @@ void cmd_emsg(char *mname)
                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]);