summaryrefslogtreecommitdiff
path: root/usr.sbin/tzsetup
diff options
context:
space:
mode:
authorJoerg Wunsch <joerg@FreeBSD.org>1997-11-07 00:07:27 +0000
committerJoerg Wunsch <joerg@FreeBSD.org>1997-11-07 00:07:27 +0000
commit8f8262da3925e54fef6c186c3b1016ab6cd9c424 (patch)
tree24350aaae04045acb8406106cffc08f94961a265 /usr.sbin/tzsetup
parentaf0d306722d06a7bf688bd508d5f70408ab32535 (diff)
downloadsrc-test2-8f8262da3925e54fef6c186c3b1016ab6cd9c424.tar.gz
src-test2-8f8262da3925e54fef6c186c3b1016ab6cd9c424.zip
Notes
Diffstat (limited to 'usr.sbin/tzsetup')
-rw-r--r--usr.sbin/tzsetup/tzsetup.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/tzsetup/tzsetup.c b/usr.sbin/tzsetup/tzsetup.c
index da8d9ee46f23..d3bd4490df84 100644
--- a/usr.sbin/tzsetup/tzsetup.c
+++ b/usr.sbin/tzsetup/tzsetup.c
@@ -34,7 +34,7 @@
#ifndef lint
static const char rcsid[] =
- "$Id$";
+ "$Id: tzsetup.c,v 1.8 1997/10/27 07:49:47 charnier Exp $";
#endif /* not lint */
#include <sys/types.h>
@@ -189,7 +189,7 @@ read_iso3166_table(void)
if (s[len - 1] != '\n')
errx(1, _PATH_ISO3166 ":%d: invalid format", lineno);
s[len - 1] = '\0';
- if (s[0] == '#')
+ if (s[0] == '#' || strspn(s, " \t") == len - 1)
continue;
/* Isolate the two-letter code. */