diff options
author | Nicholas Marriott <nicholas.marriott@gmail.com> | 2009-01-10 01:44:35 +0000 |
---|---|---|
committer | Nicholas Marriott <nicholas.marriott@gmail.com> | 2009-01-10 01:44:35 +0000 |
commit | 430d2194362e177b55c5fc66ee95f3a968ed62e1 (patch) | |
tree | 56f8a20447feb1781537a2da4b120dfc3e890d6b | |
parent | e293d6af45ccb56a99c799267df2d919dfe84fc4 (diff) |
Don't show newlines etc.
-rw-r--r-- | cmd-server-info.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/cmd-server-info.c b/cmd-server-info.c index 4dda236f..ab0c4c16 100644 --- a/cmd-server-info.c +++ b/cmd-server-info.c @@ -1,4 +1,4 @@ -/* $Id: cmd-server-info.c,v 1.2 2009-01-10 01:41:02 nicm Exp $ */ +/* $Id: cmd-server-info.c,v 1.3 2009-01-10 01:44:35 nicm Exp $ */ /* * Copyright (c) 2008 Nicholas Marriott <nicm@users.sourceforge.net> @@ -89,8 +89,8 @@ cmd_server_info_exec(unused struct cmd *self, struct cmd_ctx *ctx) ent->code, ent->name); break; case TTYCODE_STRING: - strnvis( - s, code->value.string, sizeof s, VIS_OCTAL); + strnvis(s, code->value.string, + sizeof s, VIS_OCTAL|VIS_WHITE); s[(sizeof s) - 1] = '\0'; ctx->print(ctx, " %2d,%s: (string) %s", |