From 18cca2c57f9910f7cdb89a596617c352cda26a5e Mon Sep 17 00:00:00 2001 From: Mathieu L Bouchard <matju@artengine.ca> Date: Mon, 11 Aug 2014 16:54:37 -0400 Subject: [PATCH] fix bug about -d 4 not being applied on lines that follow a %s whose string ends in \n, such as all sys_gui --- pd/src/s_inter.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pd/src/s_inter.c b/pd/src/s_inter.c index 8e80c696f..593bdf409 100644 --- a/pd/src/s_inter.c +++ b/pd/src/s_inter.c @@ -714,8 +714,7 @@ void sys_vvgui(const char *fmt, va_list ap) { } sys_guibufhead += msglen; sys_bytessincelastping += msglen; - int fmtlen = strlen(fmt); - if (fmtlen) lastend = fmt[fmtlen-1]; + if (sys_guibufhead>0) lastend=sys_guibuf[sys_guibufhead-1]; } #undef sys_vgui void sys_vgui(const char *fmt, ...) { -- GitLab