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 | f9a15ce1a69f905e94db7650f0a4805720cd9c88 (patch) | |
tree | ee37b735477fe7eaea7cb16a30d126971aae8d5b /source3/nsswitch/winbindd.c | |
parent | 607d5d508d091d6c9b9cd6549b2a89f7359d780c (diff) | |
download | samba-f9a15ce1a69f905e94db7650f0a4805720cd9c88.tar.gz samba-f9a15ce1a69f905e94db7650f0a4805720cd9c88.tar.bz2 samba-f9a15ce1a69f905e94db7650f0a4805720cd9c88.zip |
Got "medieval on our ass" about adding the -1 to slprintf.
Jeremy.
(This used to be commit 94747b4639ed9b19f7d0fb896e43aa392a84989a)
Diffstat (limited to 'source3/nsswitch/winbindd.c')
-rw-r--r-- | source3/nsswitch/winbindd.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source3/nsswitch/winbindd.c b/source3/nsswitch/winbindd.c index 7af1d09723..b0e35f3cd6 100644 --- a/source3/nsswitch/winbindd.c +++ b/source3/nsswitch/winbindd.c @@ -82,7 +82,7 @@ static void termination_handler(int signum) /* Remove socket file */ - slprintf(path, sizeof(path), "%s/%s", + slprintf(path, sizeof(path)-1, "%s/%s", WINBINDD_SOCKET_DIR, WINBINDD_SOCKET_NAME); unlink(path); @@ -159,7 +159,7 @@ static int create_sock(void) return -1; } - slprintf(path, sizeof(path), "%s/%s", + slprintf(path, sizeof(path)-1, "%s/%s", WINBINDD_SOCKET_DIR, WINBINDD_SOCKET_NAME); unlink(path); @@ -587,7 +587,7 @@ int main(int argc, char **argv) } /* Initialise samba/rpc client stuff */ - slprintf(debugf, sizeof(debugf), "%s/log.winbindd", LOGFILEBASE); + slprintf(debugf, sizeof(debugf)-1, "%s/log.winbindd", LOGFILEBASE); setup_logging("winbindd", interactive); reopen_logs(); |