aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--shell/ash.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/shell/ash.c b/shell/ash.c
index db7dffc72..a006a1c26 100644
--- a/shell/ash.c
+++ b/shell/ash.c
@@ -713,7 +713,7 @@ fmtstr(char *outbuf, size_t length, const char *fmt, ...)
713 ret = vsnprintf(outbuf, length, fmt, ap); 713 ret = vsnprintf(outbuf, length, fmt, ap);
714 va_end(ap); 714 va_end(ap);
715 INT_ON; 715 INT_ON;
716 return ret; 716 return ret > (int)length ? length : ret;
717} 717}
718 718
719static void 719static void