diff options
author | Jeremy Allison <jra@samba.org> | 2001-04-08 20:22:39 +0000 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2001-04-08 20:22:39 +0000 |
commit | 94747b4639ed9b19f7d0fb896e43aa392a84989a (patch) | |
tree | 3c1c3b31502b008306c9e45c133e8add090674af /source/lib/substitute.c | |
parent | d786191bc116c17a3f53a1c272d969942b7e5d25 (diff) | |
download | samba-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/lib/substitute.c')
-rw-r--r-- | source/lib/substitute.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/lib/substitute.c b/source/lib/substitute.c index c4bd1377c28..6abdeea114c 100644 --- a/source/lib/substitute.c +++ b/source/lib/substitute.c @@ -182,7 +182,7 @@ void standard_sub_basic(char *str) case 'T' : string_sub(p,"%T", timestring(False),l); break; case 'a' : string_sub(p,"%a", remote_arch,l); break; case 'd' : - slprintf(pidstr,sizeof(pidstr), "%d",(int)sys_getpid()); + slprintf(pidstr,sizeof(pidstr)-1, "%d",(int)sys_getpid()); string_sub(p,"%d", pidstr,l); break; case 'h' : string_sub(p,"%h", myhostname(),l); break; |