Browse Source

Fix #39 suffix fields are now in good position in loglines

Yann Weber 4 years ago
parent
commit
8074f4a6ef
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      src/logger.c

+ 1
- 1
src/logger.c View File

@@ -699,7 +699,7 @@ dprintf(2, "ERROR REALLOC _msg : %s", strerror(errno));
699 699
 	{
700 700
 		field = &(fmt->fields[i]);
701 701
 		_msgptr = fmt->_msg;
702
-		_msgptr += fmt->fields->suff?suff_off:0;
702
+		_msgptr += field->suff?suff_off:0;
703 703
 		_msgptr += field->buf_off;
704 704
 		switch(field->type)
705 705
 		{

Loading…
Cancel
Save