diff options
-rw-r--r-- | networking/ifupdown.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/networking/ifupdown.c b/networking/ifupdown.c index fedae8dd6..6c79c2004 100644 --- a/networking/ifupdown.c +++ b/networking/ifupdown.c @@ -630,8 +630,11 @@ static char *next_word(char **buf) return(NULL); } *buf = word + length; - **buf = '\0'; - (*buf)++; + /*DBU:[dave@cray.com] if we are already at EOL dont't increment beyond it */ + if (**buf) { + **buf = '\0'; + (*buf)++; + } return word; } |