Overview
| Artifact ID: | 450c6f00c91e6a3262a24b0a439b379b8347b3a7 |
|---|---|
| Ticket: | 524352ffffffffffffffffffffffffffffffffff
Fix set env() on MacOS X |
| User & Date: | jkbonfield on 2002-03-01 22:01:03 |
Changes
- icomment:
Logged In: YES user_id=154581 Sorry - I don't seem able to attach a file using IE on the Mac. Don't know why. Anyway here's the patch: *** tclEnv.c.orig Tue Feb 5 02:21:59 2002 --- tclEnv.c Fri Mar 1 14:52:08 2002 *************** *** 191,197 **** if (index == -1) { #ifndef USE_PUTENV if ((length + 2) > environSize) { ! char **newEnviron; newEnviron = (char **) ckalloc((unsigned) ((length + 5) * sizeof(char *))); --- 191,197 ---- if (index == -1) { #ifndef USE_PUTENV if ((length + 2) > environSize) { ! char **newEnviron, ***e; newEnviron = (char **) ckalloc((unsigned) ((length + 5) * sizeof(char *))); *************** *** 202,207 **** --- 202,209 ---- } environ = newEnviron; environSize = length + 5; + e = _NSGetEnviron(); + *e = environ; } index = length; environ[index + 1] = NULL; - login: "jkbonfield"
- mimetype: "text/plain"
- username: "jkbonfield"