mirror of
https://github.com/tmate-io/tmate-ssh-server.git
synced 2020-11-18 19:53:51 -08:00
Don't show newlines etc.
This commit is contained in:
parent
e293d6af45
commit
430d219436
@ -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>
|
* 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);
|
ent->code, ent->name);
|
||||||
break;
|
break;
|
||||||
case TTYCODE_STRING:
|
case TTYCODE_STRING:
|
||||||
strnvis(
|
strnvis(s, code->value.string,
|
||||||
s, code->value.string, sizeof s, VIS_OCTAL);
|
sizeof s, VIS_OCTAL|VIS_WHITE);
|
||||||
s[(sizeof s) - 1] = '\0';
|
s[(sizeof s) - 1] = '\0';
|
||||||
|
|
||||||
ctx->print(ctx, " %2d,%s: (string) %s",
|
ctx->print(ctx, " %2d,%s: (string) %s",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user