summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2000-06-05 11:45:56 +0000
committerAndrew Tridgell <tridge@samba.org>2000-06-05 11:45:56 +0000
commitc35ea645616990c25f75cfa7dcdf0ecb75ff29eb (patch)
tree7515c2d55f679715670beda92c387985cef527d9 /source3
parent55e0505d840eaf17bc85bd12af9a42a9c0d23f05 (diff)
downloadsamba-c35ea645616990c25f75cfa7dcdf0ecb75ff29eb.tar.gz
samba-c35ea645616990c25f75cfa7dcdf0ecb75ff29eb.tar.bz2
samba-c35ea645616990c25f75cfa7dcdf0ecb75ff29eb.zip
fixed a off by one bug in ntforms read from the database
(This used to be commit 1c5f70821981e961b81c31f5c83bb56c08ef5018)
Diffstat (limited to 'source3')
-rw-r--r--source3/printing/nt_printing.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/printing/nt_printing.c b/source3/printing/nt_printing.c
index 1b38c6e72c..0f77884112 100644
--- a/source3/printing/nt_printing.c
+++ b/source3/printing/nt_printing.c
@@ -78,7 +78,7 @@ int get_ntforms(nt_forms_struct **list)
dbuf = tdb_fetch(tdb, kbuf);
if (!dbuf.dptr) continue;
- fstrcpy(form.name, kbuf.dptr+strlen(FORMS_PREFIX));
+ fstrcpy(form.name, kbuf.dptr+strlen(FORMS_PREFIX)+1);
ret = tdb_unpack(dbuf.dptr, dbuf.dsize, "ddddddd",
&form.flag, &form.width, &form.length, &form.left,
&form.top, &form.right, &form.bottom);