From 3628c65e3c5c26044afa77378dead460013b553c Mon Sep 17 00:00:00 2001 From: Tim Potter Date: Mon, 14 Aug 2000 21:27:54 +0000 Subject: Merge. (This used to be commit 604f6a34effb8aeed7701345a4219749a6a97892) --- testsuite/printing/psec.c | 4 ++-- 1 file 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) { -- cgit