diff options
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(); |