]> code.citadel.org Git - citadel.git/blobdiff - webcit/downloads.c
* fix crash in downloads.c; memset should prune SubTP not TP.
[citadel.git] / webcit / downloads.c
index 56134d0c8aad9622ceaaa901844b87f746182dcf..8544aabb9db93a88d75e50fd00595fadb94e9799 100644 (file)
@@ -175,7 +175,7 @@ HashList* LoadFileList(StrBuf *Target, WCTemplputParams *TP)
        int HavePic;
        WCTemplputParams SubTP;
 
-       memset(&TP, 0, sizeof(WCTemplputParams));
+       memset(&SubTP, 0, sizeof(WCTemplputParams));
        serv_puts("RDIR");
        serv_getln(buf, sizeof buf);
        if (buf[0] != '1') return NULL;
@@ -268,7 +268,7 @@ void download_file(void)
                hprintf("HTTP/1.1 404 %s\n", ChrPtr(Buf));
                output_headers(0, 0, 0, 0, 0, 0);
                hprintf("Content-Type: text/plain\r\n");
-               wprintf(_("An error occurred while retrieving this file: %s\n"), 
+               wc_printf(_("An error occurred while retrieving this file: %s\n"), 
                        ChrPtr(Buf));
                end_burst();
        }