Yann Weber 4 years ago
parent
commit
82c2006ff9
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      src/logger.c

+ 2
- 2
src/logger.c View File

684
 		strncpy(fmt->_msg + suff_off, fmt->suffix,
684
 		strncpy(fmt->_msg + suff_off, fmt->suffix,
685
 			fmt->buflen[1]);
685
 			fmt->buflen[1]);
686
 		//TODO check errors
686
 		//TODO check errors
687
-		fmt->_msg[suff_off+fmt->buflen[1]] = '\n';
688
-		fmt->_msg[suff_off+fmt->buflen[1]+1] = '\0';
687
+		fmt->_msg[suff_off+fmt->buflen[1]-1] = '\n';
688
+		fmt->_msg[suff_off+fmt->buflen[1]] = '\0';
689
 	}
689
 	}
690
 	else
690
 	else
691
 	{
691
 	{

Loading…
Cancel
Save