diff options
Diffstat (limited to 'libexec/telnetd/global.c')
-rw-r--r-- | libexec/telnetd/global.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libexec/telnetd/global.c b/libexec/telnetd/global.c index 4b37c22a3c0..63c2b57812d 100644 --- a/libexec/telnetd/global.c +++ b/libexec/telnetd/global.c @@ -101,7 +101,7 @@ output_data (const char *format, ...) remaining, format, args); - nfrontp += ret; + nfrontp += ((ret < remaining - 1) ? ret : remaining - 1); va_end(args); return ret; } |