diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/telnet.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/telnet.c b/lib/telnet.c index 2b37d1755..2507e5c64 100644 --- a/lib/telnet.c +++ b/lib/telnet.c @@ -218,8 +218,8 @@ static void negotiate(struct connectdata *conn) static void printoption(struct UrlData *data, const char *direction, int cmd, int option) { - char *fmt; - char *opt; + const char *fmt; + const char *opt; if (data->bits.verbose) { @@ -843,7 +843,7 @@ static void suboption(struct connectdata *conn) for(v = tn->telnet_vars;v;v = v->next) { tmplen = (strlen(v->data) + 1); /* Add the variable only if it fits */ - if(len + tmplen < sizeof(temp)-6) { + if(len + tmplen < (int)sizeof(temp)-6) { sscanf(v->data, "%127[^,],%s", varname, varval); snprintf((char *)&temp[len], sizeof(temp) - len, "%c%s%c%s", NEW_ENV_VAR, varname, |