git.samba.org
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
55e0505
)
fixed a off by one bug in ntforms read from the database
author
Andrew Tridgell
<tridge@samba.org>
Mon, 5 Jun 2000 11:45:56 +0000
(11:45 +0000)
committer
Andrew Tridgell
<tridge@samba.org>
Mon, 5 Jun 2000 11:45:56 +0000
(11:45 +0000)
(This used to be commit
1c5f70821981e961b81c31f5c83bb56c08ef5018
)
source3/printing/nt_printing.c
patch
|
blob
|
history
diff --git
a/source3/printing/nt_printing.c
b/source3/printing/nt_printing.c
index 1b38c6e72c9de072665852a4f101a9a0bfe719f4..0f778841129c48c403753a1aa0c01fc8c32bbbdf 100644
(file)
--- 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);