diff options
Diffstat (limited to 'usr/src/cmd')
| -rw-r--r-- | usr/src/cmd/sgs/error/common/errorsubr.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr/src/cmd/sgs/error/common/errorsubr.c b/usr/src/cmd/sgs/error/common/errorsubr.c index ccba6592b8..e2d0828a4f 100644 --- a/usr/src/cmd/sgs/error/common/errorsubr.c +++ b/usr/src/cmd/sgs/error/common/errorsubr.c @@ -24,8 +24,6 @@ * Use is subject to license terms. */ -#pragma ident "%Z%%M% %I% %E% SMI" - #include <stdio.h> #include <ctype.h> #include <stdlib.h> @@ -295,6 +293,8 @@ wordvbuild(char *string, int *r_wordc, char ***r_wordv) for (wordcount = 0, cp = saltedbuffer; *cp; wordcount++) { while (*cp && isspace(*cp)) cp++; + if (*cp == 0) + break; while (*cp && !isspace(*cp)) cp++; } |
