Slight change to previous commit.
authorArt Cancro <ajc@citadel.org>
Fri, 12 Oct 2007 20:24:44 +0000 (20:24 +0000)
committerArt Cancro <ajc@citadel.org>
Fri, 12 Oct 2007 20:24:44 +0000 (20:24 +0000)
davew found that we should be using 'filename' not 'buf'
But we also need to set the buffer length to 'sizeof filename'
instead of 'sizeof buf'

citadel/modules/network/serv_network.c

index 51f10eb3f66ba082b6d19602bbc4b53604c91e0e..f64d604e5f953d5275822d0d19d15496ceade5ff 100644 (file)
@@ -1733,7 +1733,7 @@ void receive_spool(int sock, char *remote_nodename) {
         */
        begin_critical_section(S_NETSPOOL);
        snprintf(filename, 
-                        sizeof buf
+                        sizeof filename
                         "%s/%s.%ld",
                         ctdl_netin_dir,
                         remote_nodename,