* Don't crash when user hits <.A>ide <P>ost
authorArt Cancro <ajc@citadel.org>
Tue, 13 Sep 2005 03:56:37 +0000 (03:56 +0000)
committerArt Cancro <ajc@citadel.org>
Tue, 13 Sep 2005 03:56:37 +0000 (03:56 +0000)
citadel/ChangeLog
citadel/citadel.c

index be2ce37ecc01768ae12fbb3002605de9098e81df..d4a1b5fba8e4cc4d01a50d2a4a0d6609bcd6036f 100644 (file)
@@ -1,4 +1,7 @@
 $Log$
+Revision 654.27  2005/09/13 03:56:37  ajc
+* Don't crash when user hits <.A>ide <P>ost
+
 Revision 654.26  2005/09/10 18:46:48  ajc
 * Functions such as imap_fetch_internaldate() now return quietly with no
   output, instead of crashing, if passed a NULL message pointer.
@@ -7099,4 +7102,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 2105364a2b98afda41b8c081a58b78b84210ba21..c55a50f3e68aa728ac51544390fee5eed9d5e0a3 100644 (file)
@@ -1428,7 +1428,9 @@ NEWUSR:   if (strlen(rc_password) == 0) {
                                {
                                        /* Only m.author is used */
                                        struct ctdlipcmessage m;
-                                       newprompt("What do you want your username to be? ", m.author, USERNAME_SIZE - 1);
+                                       newprompt("What do you want your username to be? ",
+                                               m.author, USERNAME_SIZE - 1);
+                                       m.text = "";
                                        r = CtdlIPCPostMessage(ipc, 2, &m, aaa);
                                        if (r / 100 != 2)
                                                scr_printf("%s\n", aaa);