Skip to content
Snippets Groups Projects
Commit 18cca2c5 authored by Mathieu L Bouchard's avatar Mathieu L Bouchard
Browse files

fix bug about -d 4 not being applied on lines that follow a %s whose string...

fix bug about -d 4 not being applied on lines that follow a %s whose string ends in \n, such as all sys_gui
parent 0acc6c5f
No related branches found
No related tags found
No related merge requests found
...@@ -714,8 +714,7 @@ void sys_vvgui(const char *fmt, va_list ap) { ...@@ -714,8 +714,7 @@ void sys_vvgui(const char *fmt, va_list ap) {
} }
sys_guibufhead += msglen; sys_guibufhead += msglen;
sys_bytessincelastping += msglen; sys_bytessincelastping += msglen;
int fmtlen = strlen(fmt); if (sys_guibufhead>0) lastend=sys_guibuf[sys_guibufhead-1];
if (fmtlen) lastend = fmt[fmtlen-1];
} }
#undef sys_vgui #undef sys_vgui
void sys_vgui(const char *fmt, ...) { void sys_vgui(const char *fmt, ...) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment