diff options
Diffstat (limited to 'testsuite/printing')
-rw-r--r-- | testsuite/printing/psec.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/testsuite/printing/psec.c b/testsuite/printing/psec.c index e3490de759..28c4ee0ca5 100644 --- a/testsuite/printing/psec.c +++ b/testsuite/printing/psec.c @@ -167,7 +167,7 @@ int psec_getsec(char *printer) /* Open tdb for reading */ - slprintf(tdb_path, "%s/ntdrivers.tdb", LOCKDIR); + slprintf(tdb_path, sizeof(tdb_path) - 1, "%s/ntdrivers.tdb", LOCKDIR); tdb = tdb_open(tdb_path, 0, 0, O_RDONLY, 0600); if (!tdb) { @@ -264,7 +264,7 @@ int psec_setsec(char *printer) /* Open tdb for reading */ - slprintf(tdb_path, "%s/ntdrivers.tdb", LOCKDIR); + slprintf(tdb_path, sizeof(tdb_path) - 1, "%s/ntdrivers.tdb", LOCKDIR); tdb = tdb_open(tdb_path, 0, 0, O_RDWR, 0600); if (!tdb) { |