summaryrefslogtreecommitdiff
path: root/receiver.c
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2001-05-07 06:59:37 +0000
committerAndrew Tridgell <tridge@samba.org>2001-05-07 06:59:37 +0000
commit8950ac03f8fd0fb645c7d2374195ea884d091f72 (patch)
tree705b70626cedad8fef430f5046dc73257d95d773 /receiver.c
parent26ef00bd3c6c66240a4640aa54db1106d8b901fc (diff)
downloadrsync-8950ac03f8fd0fb645c7d2374195ea884d091f72.tar.gz
imported new snprintf.c from samba, got rid of slprintf
Diffstat (limited to 'receiver.c')
-rw-r--r--receiver.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/receiver.c b/receiver.c
index 0249d8a4..2f679b17 100644
--- a/receiver.c
+++ b/receiver.c
@@ -179,7 +179,7 @@ static int get_tmpname(char *fnametmp, char *fname)
rprintf(FERROR,"filename too long\n");
return 0;
}
- slprintf(fnametmp,MAXPATHLEN, "%s/.%s.XXXXXX",tmpdir,f);
+ snprintf(fnametmp,MAXPATHLEN, "%s/.%s.XXXXXX",tmpdir,f);
return 1;
}
@@ -192,11 +192,11 @@ static int get_tmpname(char *fnametmp, char *fname)
if (f) {
*f = 0;
- slprintf(fnametmp,MAXPATHLEN,"%s/.%s.XXXXXX",
+ snprintf(fnametmp,MAXPATHLEN,"%s/.%s.XXXXXX",
fname,f+1);
*f = '/';
} else {
- slprintf(fnametmp,MAXPATHLEN,".%s.XXXXXX",fname);
+ snprintf(fnametmp,MAXPATHLEN,".%s.XXXXXX",fname);
}
return 1;
@@ -372,7 +372,7 @@ int recv_files(int f_in,struct file_list *flist,char *local_name,int f_gen)
if ((fd1 == -1) && (compare_dest != NULL)) {
/* try the file at compare_dest instead */
- slprintf(fnamecmpbuf,MAXPATHLEN,"%s/%s",
+ snprintf(fnamecmpbuf,MAXPATHLEN,"%s/%s",
compare_dest,fname);
fnamecmp = fnamecmpbuf;
fd1 = do_open(fnamecmp, O_RDONLY, 0);