summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Potter <tpot@samba.org>2000-08-14 21:27:54 +0000
committerTim Potter <tpot@samba.org>2000-08-14 21:27:54 +0000
commit604f6a34effb8aeed7701345a4219749a6a97892 (patch)
treea9c12cbdd5f35f8b8e2a6e6a1162664cfe1a10c2
parentbd4c83eb40a14baf447ac88886d4eafe7b9a309f (diff)
downloadsamba-604f6a34effb8aeed7701345a4219749a6a97892.tar.gz
Merge.
-rw-r--r--testsuite/printing/psec.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/testsuite/printing/psec.c b/testsuite/printing/psec.c
index e3490de7598..28c4ee0ca51 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) {