From 3f85bdca15d2f0258413039978b6552965385335 Mon Sep 17 00:00:00 2001 From: irungentoo Date: Tue, 30 Jul 2013 08:48:36 -0400 Subject: [PATCH] Fixed warning. --- testing/DHT_test.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/testing/DHT_test.c b/testing/DHT_test.c index 2e9c2ac2..a215463d 100644 --- a/testing/DHT_test.c +++ b/testing/DHT_test.c @@ -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 */