mirror of
https://github.com/vanhauser-thc/thc-hydra.git
synced 2025-08-20 05:13:51 -07:00
sscanf change
This commit is contained in:
parent
d3f784ab64
commit
93283091d0
1 changed files with 1 additions and 1 deletions
|
@ -42,7 +42,7 @@ int32_t get_sip_code(char *buf) {
|
||||||
int32_t code;
|
int32_t code;
|
||||||
char tmpbuf[SIP_MAX_BUF], word[SIP_MAX_BUF];
|
char tmpbuf[SIP_MAX_BUF], word[SIP_MAX_BUF];
|
||||||
|
|
||||||
if (sscanf(buf, "%s %i %s", tmpbuf, &code, word) != 3)
|
if (sscanf(buf, "%256s %i %256s", tmpbuf, &code, word) != 3)
|
||||||
return -1;
|
return -1;
|
||||||
return code;
|
return code;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue