Fixed a bug in serv_network.c that was causing strange files to appear
authorDave West <davew@uncensored.citadel.org>
Fri, 12 Oct 2007 20:18:40 +0000 (20:18 +0000)
committerDave West <davew@uncensored.citadel.org>
Fri, 12 Oct 2007 20:18:40 +0000 (20:18 +0000)
in citadel home directory.
This may also have caused spooled messages to go missing, depends on who
polled who.

citadel/modules/network/serv_network.c

index 4208952d30f870076507d1604db6be861c5140b1..51f10eb3f66ba082b6d19602bbc4b53604c91e0e 100644 (file)
@@ -1732,7 +1732,7 @@ void receive_spool(int sock, char *remote_nodename) {
         * (We copy instead of link because they may be on different filesystems)
         */
        begin_critical_section(S_NETSPOOL);
-       snprintf(buf
+       snprintf(filename
                         sizeof buf, 
                         "%s/%s.%ld",
                         ctdl_netin_dir,