summaryrefslogtreecommitdiff
path: root/time/tzfile.c
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>1997-03-17 04:14:27 +0000
committerUlrich Drepper <drepper@redhat.com>1997-03-17 04:14:27 +0000
commit71c5289b0fcdd4ea89309a18d5e924fa962aab66 (patch)
tree77e6389be82bcc068191eef654bfe6222bb67d0d /time/tzfile.c
parent1893ec6a38332482a0ca2d9032118a8f0d162d08 (diff)
Update from tzcode1997c.
Diffstat (limited to 'time/tzfile.c')
-rw-r--r--time/tzfile.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/time/tzfile.c b/time/tzfile.c
index 94b8a3c8fe..44b33cb02c 100644
--- a/time/tzfile.c
+++ b/time/tzfile.c
@@ -120,7 +120,7 @@ __tzfile_read (const char *file)
and which is not the system wide default TZDEFAULT. */
if (__libc_enable_secure
&& ((*file == '/'
- && memcmp (file, TZDEFAULT, sizeof (TZDEFAULT) - 1)
+ && memcmp (file, TZDEFAULT, sizeof TZDEFAULT)
&& memcmp (file, default_tzdir, sizeof (default_tzdir) - 1))
|| strstr (file, "../") != NULL))
/* This test is certainly a bit too restrictive but it should