diff options
Diffstat (limited to 'lib/print.c')
-rw-r--r-- | lib/print.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/print.c b/lib/print.c index 7f42434..7dd229e 100644 --- a/lib/print.c +++ b/lib/print.c @@ -31,7 +31,7 @@ #define SNPRINTF_FAILURE(size, len, offset) \ do { \ if (size < 0 || (unsigned int) size >= len) \ - return size; \ + return offset + size; \ offset += size; \ len -= size; \ } while (0) |