This commit is contained in:
King Kévin 2017-03-08 10:19:00 +01:00
parent 8252ada4bb
commit d0a713a98e
1 changed files with 1 additions and 1 deletions

View File

@ -289,7 +289,7 @@ static size_t vsnprintf(char** str, size_t* size, const char *format, va_list va
}
end:
if (NULL!=str && NULL!=*str && NULL!=size) { // when working on a string
*str='\0'; // enforce null termination
**str='\0'; // enforce null termination
}
return length; // return number of characters it should have written
}