mirror of https://git.48k.eu/ogserver
#915 fix missing null-terminated string
This patch changes the number of characters stored in cli->auth_token from 64 to 63. This way the array has the last position available to store the null character.master
parent
784495f5d5
commit
64e653773e
|
@ -4172,7 +4172,7 @@ static int og_client_state_recv_hdr_rest(struct og_client *cli)
|
|||
|
||||
ptr = strstr(cli->buf, "Authorization: ");
|
||||
if (ptr)
|
||||
sscanf(ptr, "Authorization: %64[^\r\n]", cli->auth_token);
|
||||
sscanf(ptr, "Authorization: %63[^\r\n]", cli->auth_token);
|
||||
|
||||
return 1;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue