From d7f19f5acfa79fae39cccbed07bb56a54fbe1c57 Mon Sep 17 00:00:00 2001 From: Devine Lu Linvega Date: Fri, 5 Apr 2024 13:46:38 -0700 Subject: [PATCH] Fixed issue with clipped program --- src/modal.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/modal.c b/src/modal.c index fa408d2..5e17697 100644 --- a/src/modal.c +++ b/src/modal.c @@ -178,12 +178,12 @@ parse_rulefrag(char *line) static int parse_line(char *line) { + char c; if(line[0] == 0) return 1; if(line[0] == '<' && line[1] == '>') return !!addrule(line); - while((*prog_++ = *line++)) - ; - *prog_++ = 0xa; + while((c = *line++)) + *prog_++ = c; return 1; }