projects
/
citadel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
21e4d02
)
Slight change to previous commit.
author
Art Cancro
<ajc@citadel.org>
Fri, 12 Oct 2007 20:24:44 +0000
(20:24 +0000)
committer
Art 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
patch
|
blob
|
history
diff --git
a/citadel/modules/network/serv_network.c
b/citadel/modules/network/serv_network.c
index 51f10eb3f66ba082b6d19602bbc4b53604c91e0e..f64d604e5f953d5275822d0d19d15496ceade5ff 100644
(file)
--- a/
citadel/modules/network/serv_network.c
+++ b/
citadel/modules/network/serv_network.c
@@
-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,