diff options
author | Andrew Tridgell <tridge@samba.org> | 2000-06-05 11:45:56 +0000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2000-06-05 11:45:56 +0000 |
commit | 1c5f70821981e961b81c31f5c83bb56c08ef5018 (patch) | |
tree | 7d8001ba511d841df5384e236200342a953d7e92 | |
parent | 6f07da3b9146e880df3290e664a28f904ac252eb (diff) | |
download | samba-1c5f70821981e961b81c31f5c83bb56c08ef5018.tar.gz samba-1c5f70821981e961b81c31f5c83bb56c08ef5018.tar.xz samba-1c5f70821981e961b81c31f5c83bb56c08ef5018.zip |
fixed a off by one bug in ntforms read from the database
-rw-r--r-- | source/printing/nt_printing.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/printing/nt_printing.c b/source/printing/nt_printing.c index 1b38c6e72c9..0f778841129 100644 --- a/source/printing/nt_printing.c +++ b/source/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); |