Fixed warning.

This commit is contained in:
irungentoo 2013-07-30 08:48:36 -04:00
parent dbdeb670e4
commit 3f85bdca15

View File

@ -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 */