diff options
author | Björn Baumbach <bb@sernet.de> | 2011-10-19 10:54:53 +0200 |
---|---|---|
committer | Michael Adam <obnox@samba.org> | 2011-10-26 04:17:05 +0200 |
commit | 2fac12b2767dbab9a406370e258ce9b6f2322bd6 (patch) | |
tree | be51ec6ea6cd1c30078ff9943788a4550e876d8e /source3 | |
parent | f881d43837e77e5ed2d96aecb976720a5d2c237b (diff) | |
download | samba-2fac12b2767dbab9a406370e258ce9b6f2322bd6.tar.gz samba-2fac12b2767dbab9a406370e258ce9b6f2322bd6.tar.bz2 samba-2fac12b2767dbab9a406370e258ce9b6f2322bd6.zip |
s3-util: dbwrap_tool: fix fetch_string function
We do not want truncated strings.
Signed-off-by: Michael Adam <obnox@samba.org>
Autobuild-User: Michael Adam <obnox@samba.org>
Autobuild-Date: Wed Oct 26 04:17:05 CEST 2011 on sn-devel-104
Diffstat (limited to 'source3')
-rw-r--r-- | source3/utils/dbwrap_tool.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/utils/dbwrap_tool.c b/source3/utils/dbwrap_tool.c index 84ff3a1fe2..fe4e6ebef4 100644 --- a/source3/utils/dbwrap_tool.c +++ b/source3/utils/dbwrap_tool.c @@ -79,7 +79,7 @@ static int dbwrap_tool_fetch_string(struct db_context *db, status = dbwrap_fetch_bystring(db, tmp_ctx, keyname, &tdbdata); if (NT_STATUS_IS_OK(status)) { - d_printf("%*.*s\n", (int)tdbdata.dsize-1, (int)tdbdata.dsize-1, + d_printf("%-*.*s\n", (int)tdbdata.dsize, (int)tdbdata.dsize, tdbdata.dptr); ret = 0; } else { |