]> code.citadel.org Git - citadel.git/blobdiff - citadel/messages.c
* Replaced all "Citadel/UX" references with "Citadel"
[citadel.git] / citadel / messages.c
index 160be8632ff950a771e251f2578ea5584b90bbcc..f29dddfbe6554acea109c2deffd99311a8122ea2 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * $Id$
  *
- * Citadel/UX message support routines
+ * Citadel message support routines
  * see copyright.txt for copyright information
  */
 
@@ -1817,11 +1817,11 @@ RMSGREAD:       scr_flush();
                   We have to load up messages until we find one by us */
                char buf[SIZ];
                int founda = 0;
-               struct ctdlipcmessage *msg;
+               struct ctdlipcmessage *msg = NULL;
                 
                /* read the header so we can get 'from=' */
                r = CtdlIPCGetSingleMessage(ipc, msg_arr[finda], 1, 0, &msg, buf);
-               if (!strncasecmp(msg->author, fullname)) {
+               if (!strncasecmp(msg->author, fullname, sizeof(fullname))) {
                        a = lasta; /* meesa current */
                        founda = 1;
                }