summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/lib/eina/eina_stringshare.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/eina/eina_stringshare.c b/src/lib/eina/eina_stringshare.c
index 6ccd1cfecc..c5ee200880 100644
--- a/src/lib/eina/eina_stringshare.c
+++ b/src/lib/eina/eina_stringshare.c
@@ -674,7 +674,7 @@ eina_stringshare_nprintf(unsigned int len, const char *fmt, ...)
674 tmp = alloca(sizeof(char) * (len + 1)); 674 tmp = alloca(sizeof(char) * (len + 1));
675 675
676 va_start(args, fmt); 676 va_start(args, fmt);
677 size = vsnprintf(tmp, len + 1, fmt, args); 677 size = vsnprintf(tmp, len, fmt, args);
678 va_end(args); 678 va_end(args);
679 679
680 if (size < 1) 680 if (size < 1)