summaryrefslogtreecommitdiff
path: root/testsuite
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
commit3628c65e3c5c26044afa77378dead460013b553c (patch)
tree580a30ba1ab00eda78183079f89484ee1303e0b6 /testsuite
parent7ed3fcad2a75d89c5d7272e2aab8fe3a7f9cd943 (diff)
downloadsamba-3628c65e3c5c26044afa77378dead460013b553c.tar.gz
samba-3628c65e3c5c26044afa77378dead460013b553c.tar.bz2
samba-3628c65e3c5c26044afa77378dead460013b553c.zip
Merge.
(This used to be commit 604f6a34effb8aeed7701345a4219749a6a97892)
Diffstat (limited to 'testsuite')
-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 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) {