diff options
Diffstat (limited to 'newlib/libc')
-rw-r--r-- | newlib/libc/stdlib/setenv_r.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/newlib/libc/stdlib/setenv_r.c b/newlib/libc/stdlib/setenv_r.c index f06dc6772..694bd14a9 100644 --- a/newlib/libc/stdlib/setenv_r.c +++ b/newlib/libc/stdlib/setenv_r.c @@ -122,7 +122,7 @@ _DEFUN (_setenv_r, (reent_ptr, name, value, rewrite), ENV_UNLOCK; /* if we are setting the TZ environment variable, update timezone info */ - if (strcmp (name, "TZ") == 0) + if (strncmp ((*p_environ)[offset], "TZ=", 3) == 0) tzset (); return 0; |