forked from enlightenment/efl
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:
parent
5337d908e4
commit
80baf516a3
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue