diff options
author | Roland McGrath <roland@redhat.com> | 1993-12-15 22:49:45 +0000 |
---|---|---|
committer | Roland McGrath <roland@redhat.com> | 1993-12-15 22:49:45 +0000 |
commit | 4f752036acd358448667df93950af4a02650fce5 (patch) | |
tree | 967cf8c99d7c7d5950b425568bfa29e5138bdf85 /main.c | |
parent | b8c55666a721a0a7446ea41e6c6d49593b895bfe (diff) | |
download | gunmake-4f752036acd358448667df93950af4a02650fce5.tar.gz |
Formerly main.c.~102~
Diffstat (limited to 'main.c')
-rw-r--r-- | main.c | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -497,7 +497,11 @@ main (argc, argv, envp) register char *ep = envp[i]; while (*ep != '=') ++ep; - define_variable (envp[i], ep - envp[i], ep + 1, o_env, 1) + /* The result of pointer arithmetic is cast to unsigned int for + machines where ptrdiff_t is a different size that doesn't widen + the same. */ + define_variable (envp[i], (unsigned int) (ep - envp[i]), + ep + 1, o_env, 1) /* Force exportation of every variable culled from the environment. We used to rely on target_environment's v_default code to do this. But that does not work for the case where an environment variable |