This commit is contained in:
Yann Weber 2019-08-26 14:02:08 +02:00
commit 82c2006ff9

View file

@ -684,8 +684,8 @@ dprintf(2, "ERROR REALLOC _msg : %s", strerror(errno));
strncpy(fmt->_msg + suff_off, fmt->suffix,
fmt->buflen[1]);
//TODO check errors
fmt->_msg[suff_off+fmt->buflen[1]] = '\n';
fmt->_msg[suff_off+fmt->buflen[1]+1] = '\0';
fmt->_msg[suff_off+fmt->buflen[1]-1] = '\n';
fmt->_msg[suff_off+fmt->buflen[1]] = '\0';
}
else
{