summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorXavi Artigas <xavierartigas@yahoo.es>2018-06-26 12:38:22 -0400
committerMike Blumenkrantz <zmike@samsung.com>2018-06-26 12:38:22 -0400
commit80baf516a3267b5ae02a2c8d931ff153f3b1f64a (patch)
tree3b687e6e266ecf799ede94d4de67cf5e4989edb4 /src
parent5337d908e433b926572e19f0fd6ee1f66340990a (diff)
Revert "eina: provide full string length to vsnprintf to allow for null character"
Summary: This reverts commit e0f8e65d2044d49df4fd6355e7835a5f01d854e7 which changed the behavior of eina_stringshare_nprintf() and was not really needed to fix T6903. Reviewers: zmike, Jaehyun_Cho, devilhorns Reviewed By: zmike Subscribers: cedric, #committers Tags: #efl Maniphest Tasks: T6903 Differential Revision: https://phab.enlightenment.org/D6431
Diffstat (limited to 'src')
-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)