diff options
| author | Matthew Jacob <Matthew.Jacob@Sun.COM> | 2008-10-24 19:15:34 -0700 |
|---|---|---|
| committer | Matthew Jacob <Matthew.Jacob@Sun.COM> | 2008-10-24 19:15:34 -0700 |
| commit | 968633ad8faee931821fd6b656eb0d96d4b186c0 (patch) | |
| tree | 1261557550a693b580dbd77bd843dbe8afa99ac7 /usr/src/cmd/sgs | |
| parent | c982efc333f0ad3af5db83d61d480108db61ee54 (diff) | |
| download | illumos-joyent-968633ad8faee931821fd6b656eb0d96d4b186c0.tar.gz | |
6739333 error(1) has been broken for a while- simple fix
Diffstat (limited to 'usr/src/cmd/sgs')
| -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++; } |
