diff options
author | markm <markm@FreeBSD.org> | 2001-12-03 12:41:19 +0000 |
---|---|---|
committer | markm <markm@FreeBSD.org> | 2001-12-03 12:41:19 +0000 |
commit | 2149facaa0e9b95d54397e75de134478e5f45618 (patch) | |
tree | 7718e4cc170ea4f21159bd4a86899f2c8852b168 /libexec/telnetd/sys_term.c | |
parent | c7155665d1c77d730c31da2a9c64ddd8f81ae2d9 (diff) | |
download | FreeBSD-src-2149facaa0e9b95d54397e75de134478e5f45618.zip FreeBSD-src-2149facaa0e9b95d54397e75de134478e5f45618.tar.gz |
Merge from master (crypto) telnet. WARNS fixes for alpha.
Diffstat (limited to 'libexec/telnetd/sys_term.c')
-rw-r--r-- | libexec/telnetd/sys_term.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libexec/telnetd/sys_term.c b/libexec/telnetd/sys_term.c index 0fb8512..3d9e091 100644 --- a/libexec/telnetd/sys_term.c +++ b/libexec/telnetd/sys_term.c @@ -1098,14 +1098,14 @@ addarg(char **argv, const char *val) } for (cpp = argv; *cpp; cpp++) ; - if (cpp == &argv[(int)argv[-1]]) { + if (cpp == &argv[(long)argv[-1]]) { --argv; - *argv = (char *)((int)(*argv) + 10); - argv = (char **)realloc(argv, sizeof(*argv)*((int)(*argv) + 2)); + *argv = (char *)((long)(*argv) + 10); + argv = (char **)realloc(argv, sizeof(*argv)*((long)(*argv) + 2)); if (argv == NULL) return(NULL); argv++; - cpp = &argv[(int)argv[-1] - 10]; + cpp = &argv[(long)argv[-1] - 10]; } *cpp++ = strdup(val); *cpp = 0; |