On 2015-10-15 at 12:48 Dan Cross <
notifi...@github.com> wrote:
> printf("%.*s", sizeof(buf), buf);
>
> or since you know the buffer size,
>
> printf("%.256s", buf);
>
> Also, did you want a newline at the end of the print?
I didn't, actually.
I just wanted something that was a sanity check on what the server was
getting. Using %s wasn't enough, since I wasn't getting
null-terminated strings from the telnet client when it was not in line
mode.
Barret