summaryrefslogtreecommitdiffstats
path: root/source/msdfs
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2001-04-08 20:22:39 +0000
committerJeremy Allison <jra@samba.org>2001-04-08 20:22:39 +0000
commit94747b4639ed9b19f7d0fb896e43aa392a84989a (patch)
tree3c1c3b31502b008306c9e45c133e8add090674af /source/msdfs
parentd786191bc116c17a3f53a1c272d969942b7e5d25 (diff)
downloadsamba-94747b4639ed9b19f7d0fb896e43aa392a84989a.tar.gz
samba-94747b4639ed9b19f7d0fb896e43aa392a84989a.tar.xz
samba-94747b4639ed9b19f7d0fb896e43aa392a84989a.zip
Got "medieval on our ass" about adding the -1 to slprintf.
Jeremy.
Diffstat (limited to 'source/msdfs')
-rw-r--r--source/msdfs/msdfs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/msdfs/msdfs.c b/source/msdfs/msdfs.c
index d525edab3cf..b93590fcd24 100644
--- a/source/msdfs/msdfs.c
+++ b/source/msdfs/msdfs.c
@@ -690,7 +690,7 @@ static BOOL form_junctions(int snum, struct junction_map* jn, int* jn_count)
jn[cnt].volume_name[0] = '\0';
jn[cnt].referral_count = 1;
- slprintf(alt_path,"\\\\%s\\%s", global_myname, service_name);
+ slprintf(alt_path,sizeof(alt_path)-1"\\\\%s\\%s", global_myname, service_name);
jn[cnt].referral_l
*/