diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2019-07-25 09:01:05 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2019-07-25 09:01:05 (GMT) |
commit | 62c64586b62f23ff1c769bc9a0a3c44e9d0adc5d (patch) | |
tree | 9a2638b8949cdf71c9e5278d7bdef31d8854665b /unix/tclUnixCompat.c | |
parent | 810eeec19d827e3162bea26dc073c0ca99819f77 (diff) | |
parent | 37feaf8aeca6ecef96e01f328eda73a61ad11470 (diff) | |
download | tcl-62c64586b62f23ff1c769bc9a0a3c44e9d0adc5d.zip tcl-62c64586b62f23ff1c769bc9a0a3c44e9d0adc5d.tar.gz tcl-62c64586b62f23ff1c769bc9a0a3c44e9d0adc5d.tar.bz2 |
Merge 8.7
Diffstat (limited to 'unix/tclUnixCompat.c')
-rw-r--r-- | unix/tclUnixCompat.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/unix/tclUnixCompat.c b/unix/tclUnixCompat.c index c63b485..9b8acc9 100644 --- a/unix/tclUnixCompat.c +++ b/unix/tclUnixCompat.c @@ -683,8 +683,8 @@ CopyGrp( char *buf, int buflen) { - register char *p = buf; - register int copied, len = 0; + char *p = buf; + int copied, len = 0; /* * Copy username. @@ -885,7 +885,7 @@ CopyArray( int buflen) /* Size of buffer. */ { int i, j, len = 0; - char *p, **new; + char *p, **newBuffer; if (src == NULL) { return 0; @@ -901,7 +901,7 @@ CopyArray( return -1; } - new = (char **) buf; + newBuffer = (char **) buf; p = buf + len; for (j = 0; j < i; j++) { @@ -912,10 +912,10 @@ CopyArray( return -1; } memcpy(p, src[j], sz); - new[j] = p; + newBuffer[j] = p; p = buf + len; } - new[j] = NULL; + newBuffer[j] = NULL; return len; } |