From 659d6a2b6187cc9ee784ed7c45a5cdadbdfd788b Mon Sep 17 00:00:00 2001 From: Gerald Carter Date: Mon, 1 Mar 2004 17:40:40 +0000 Subject: BUG 692: patch from SATOH Fumiyasu to correct truncation of share names and workgroup names (This used to be commit 822e31d841e720d48f4feeec673b75575caa8fac) --- source3/client/client.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'source3/client/client.c') diff --git a/source3/client/client.c b/source3/client/client.c index d4ad5fa1fe..547ebe8029 100644 --- a/source3/client/client.c +++ b/source3/client/client.c @@ -2003,7 +2003,7 @@ static void browse_fn(const char *name, uint32 m, in any of these fields, they can corrupt the output. We should remove them. */ if (!grepable) { - d_printf("\t%-15.15s%-10.10s%s\n", + d_printf("\t%-15s %-10.10s%s\n", name,typestr,comment); } else { d_printf ("%s|%s|%s\n",typestr,name,comment); @@ -2018,8 +2018,8 @@ static BOOL browse_host(BOOL sort) { int ret; if (!grepable) { - d_printf("\n\tSharename Type Comment\n"); - d_printf("\t--------- ---- -------\n"); + d_printf("\n\tSharename Type Comment\n"); + d_printf("\t--------- ---- -------\n"); } if((ret = cli_RNetShareEnum(cli, browse_fn, NULL)) == -1) @@ -2037,7 +2037,7 @@ static void server_fn(const char *name, uint32 m, { if (!grepable){ - d_printf("\t%-16.16s %s\n", name, comment); + d_printf("\t%-16s %s\n", name, comment); } else { d_printf("%s|%s|%s\n",(char *)state, name, comment); } -- cgit