From 94747b4639ed9b19f7d0fb896e43aa392a84989a Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Sun, 8 Apr 2001 20:22:39 +0000 Subject: Got "medieval on our ass" about adding the -1 to slprintf. Jeremy. --- source/lib/substitute.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/lib/substitute.c') 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; -- cgit