diff options
Diffstat (limited to 'sysdeps/generic')
-rw-r--r-- | sysdeps/generic/bits/errno.h | 1 | ||||
-rw-r--r-- | sysdeps/generic/setenv.c | 9 |
2 files changed, 6 insertions, 4 deletions
diff --git a/sysdeps/generic/bits/errno.h b/sysdeps/generic/bits/errno.h index 622c2c9..d1cb464 100644 --- a/sysdeps/generic/bits/errno.h +++ b/sysdeps/generic/bits/errno.h @@ -23,6 +23,7 @@ #define __Emath_defined 1 # define EDOM XXX <--- fill in what is actually needed +# define EILSEQ XXX <--- fill in what is actually needed # define ERANGE XXX <--- fill in what is actually needed #endif diff --git a/sysdeps/generic/setenv.c b/sysdeps/generic/setenv.c index f58c65b..d4c5c87 100644 --- a/sysdeps/generic/setenv.c +++ b/sysdeps/generic/setenv.c @@ -91,7 +91,6 @@ setenv (name, value, replace) if (__environ == NULL || *ep == NULL) { char **new_environ; - char *tmp; if (__environ == last_environ && __environ != NULL) /* We allocated this space; we can extend it. */ @@ -120,9 +119,11 @@ setenv (name, value, replace) size * sizeof (char *)); #ifdef _LIBC - tmp = __mempcpy (new_environ[size], name, namelen); - *tmp++ = '='; - __mempcpy (tmp, value, vallen); + { + char *tmp = __mempcpy (new_environ[size], name, namelen); + *tmp++ = '='; + __mempcpy (tmp, value, vallen); + } #else memcpy (new_environ[size], name, namelen); new_environ[size][namelen] = '='; |