Revert "eina: provide full string length to vsnprintf to allow for null character"

Summary:
This reverts commit e0f8e65d20 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
This commit is contained in:
Xavi Artigas 2018-06-26 12:38:22 -04:00 committed by Mike Blumenkrantz
parent 5337d908e4
commit 80baf516a3
1 changed files with 1 additions and 1 deletions

View File

@ -674,7 +674,7 @@ eina_stringshare_nprintf(unsigned int len, const char *fmt, ...)
tmp = alloca(sizeof(char) * (len + 1));
va_start(args, fmt);
size = vsnprintf(tmp, len + 1, fmt, args);
size = vsnprintf(tmp, len, fmt, args);
va_end(args);
if (size < 1)