fiss-minit

A standalone service supervisor based on minit
Log | Files | Refs | README | LICENSE

commit 16b07898cdc5c6a2a6fa936a2500f702fbad7a6f
parent f1b1b604f8de84c57cff6d50e206dacfddf9ea93
Author: leitner <leitner>
Date:   Tue, 23 Sep 2008 19:32:32 +0000

fix quoting

Diffstat:
Mserdo.c | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/serdo.c b/serdo.c @@ -70,7 +70,7 @@ int run(char* s,int last) { if (*s=='"') { ++s; *next=s; - while (*s && s[-1] != '\\' && *s != '"') ++s; + while (*s && (*s != '"' || s[-1] == '\\')) ++s; if (!*s) { --*next; break; @@ -80,7 +80,7 @@ int run(char* s,int last) { } else if (*s=='\'') { ++s; *next=s; - while (*s && s[-1] != '\\' && *s != '\'') ++s; + while (*s && (*s != '\'' || s[-1] == '\\')) ++s; if (!*s) { --*next; break;