Got "medieval on our ass" about adding the -1 to slprintf.
[samba.git] / source3 / smbd / server.c
index baa1536248a3faea773cf062fc4f090e99de3c75..adf57b3f5521d78626535f34c1f51f7e32327c47 100644 (file)
@@ -626,7 +626,7 @@ static void usage(char *pname)
        TimeInit();
 
        if(!specified_logfile) {
-               slprintf(debugf, sizeof(debugf), "%s/log.smbd", LOGFILEBASE);
+               slprintf(debugf, sizeof(debugf)-1, "%s/log.smbd", LOGFILEBASE);
        }
 
        pstrcpy(remote_machine, "smbd");