mirror of
https://github.com/moparisthebest/curl
synced 2025-03-11 15:50:48 -04:00
const and unsigned/signed fixes
This commit is contained in:
parent
bd0afd8db4
commit
83a5e39065
@ -218,8 +218,8 @@ static void negotiate(struct connectdata *conn)
|
|||||||
static void printoption(struct UrlData *data,
|
static void printoption(struct UrlData *data,
|
||||||
const char *direction, int cmd, int option)
|
const char *direction, int cmd, int option)
|
||||||
{
|
{
|
||||||
char *fmt;
|
const char *fmt;
|
||||||
char *opt;
|
const char *opt;
|
||||||
|
|
||||||
if (data->bits.verbose)
|
if (data->bits.verbose)
|
||||||
{
|
{
|
||||||
@ -843,7 +843,7 @@ static void suboption(struct connectdata *conn)
|
|||||||
for(v = tn->telnet_vars;v;v = v->next) {
|
for(v = tn->telnet_vars;v;v = v->next) {
|
||||||
tmplen = (strlen(v->data) + 1);
|
tmplen = (strlen(v->data) + 1);
|
||||||
/* Add the variable only if it fits */
|
/* 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);
|
sscanf(v->data, "%127[^,],%s", varname, varval);
|
||||||
snprintf((char *)&temp[len], sizeof(temp) - len,
|
snprintf((char *)&temp[len], sizeof(temp) - len,
|
||||||
"%c%s%c%s", NEW_ENV_VAR, varname,
|
"%c%s%c%s", NEW_ENV_VAR, varname,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user