X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=blobdiff_plain;f=pscp.c;h=61e6e1af0ef9a215a317d04f93a189e59ccc1965;hb=984fe3dde809681f91d72152a4f96e91d79a2855;hp=a4e55fe09b457be378152051125797071afe9b60;hpb=3ad0c89feca43af8c4e8ddb913bc232ad4fb5521;p=PuTTY.git diff --git a/pscp.c b/pscp.c index a4e55fe0..61e6e1af 100644 --- a/pscp.c +++ b/pscp.c @@ -1495,7 +1495,7 @@ int scp_get_sink_action(struct scp_sink_action *act) { char sizestr[40]; - if (sscanf(act->buf, "%lo %s %n", &act->permissions, + if (sscanf(act->buf, "%lo %39s %n", &act->permissions, sizestr, &i) != 2) bump("Protocol error: Illegal file descriptor format"); act->size = uint64_from_decimal(sizestr);