diff options
author | Simon Rettberg | 2020-12-02 08:35:55 +0100 |
---|---|---|
committer | Simon Rettberg | 2020-12-02 08:35:55 +0100 |
commit | e5319b91d163384ee22db077b2d37688d65646c9 (patch) | |
tree | 04acbf822516634814098b38a9878ffc1a55529d /driver/subprocs.c | |
parent | driver/timers.c: fix flush_events() (diff) | |
parent | 5.44 (diff) | |
download | xscreensaver-e5319b91d163384ee22db077b2d37688d65646c9.tar.gz xscreensaver-e5319b91d163384ee22db077b2d37688d65646c9.tar.xz xscreensaver-e5319b91d163384ee22db077b2d37688d65646c9.zip |
Merge branch 'master' into openslx
Diffstat (limited to 'driver/subprocs.c')
-rw-r--r-- | driver/subprocs.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/driver/subprocs.c b/driver/subprocs.c index c46eeee..6cb96d3 100644 --- a/driver/subprocs.c +++ b/driver/subprocs.c @@ -264,8 +264,8 @@ make_job (pid_t pid, int screen, const char *cmd) clean_job_list(); AGAIN: - while (isspace(*in)) in++; /* skip whitespace */ - while (!isspace(*in) && *in != ':') { + while (*in && isspace(*in)) in++; /* skip whitespace */ + while (*in && !isspace(*in) && *in != ':') { if (*in == '=') got_eq = 1; *out++ = *in++; /* snarf first token */ } @@ -277,7 +277,7 @@ make_job (pid_t pid, int screen, const char *cmd) goto AGAIN; } - while (isspace(*in)) in++; /* skip whitespace */ + while (*in && isspace(*in)) in++; /* skip whitespace */ *out = 0; job->name = strdup(name); |