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,8 +684,8 @@ dprintf(2, "ERROR REALLOC _msg : %s", strerror(errno));
684 684
 		strncpy(fmt->_msg + suff_off, fmt->suffix,
685 685
 			fmt->buflen[1]);
686 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 690
 	else
691 691
 	{

Loading…
Cancel
Save