mirror of
https://github.com/irungentoo/toxcore.git
synced 2024-03-22 13:30:51 +08:00
Fixed warning.
This commit is contained in:
parent
dbdeb670e4
commit
3f85bdca15
|
@ -134,7 +134,9 @@ int main(int argc, char *argv[])
|
|||
|
||||
char temp_id[128];
|
||||
printf("\nEnter the client_id of the friend you wish to add (32 bytes HEX format):\n");
|
||||
scanf("%s", temp_id);
|
||||
if(scanf("%s", temp_id) != 1)
|
||||
exit(0);
|
||||
|
||||
DHT_addfriend(hex_string_to_bin(temp_id));
|
||||
|
||||
/* initialize networking */
|
||||
|
|
Loading…
Reference in New Issue
Block a user