diff options
author | irungentoo <irungentoo@gmail.com> | 2013-07-30 08:48:36 -0400 |
---|---|---|
committer | irungentoo <irungentoo@gmail.com> | 2013-07-30 08:48:36 -0400 |
commit | 3f85bdca15d2f0258413039978b6552965385335 (patch) | |
tree | f3a45231895151f97df6b986f6550c85cbef3e60 | |
parent | dbdeb670e467eac430789c6ec8f03ebad7a5edf1 (diff) |
Fixed warning.
-rw-r--r-- | testing/DHT_test.c | 4 |
1 files changed, 3 insertions, 1 deletions
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[]) | |||
134 | 134 | ||
135 | char temp_id[128]; | 135 | char temp_id[128]; |
136 | printf("\nEnter the client_id of the friend you wish to add (32 bytes HEX format):\n"); | 136 | printf("\nEnter the client_id of the friend you wish to add (32 bytes HEX format):\n"); |
137 | scanf("%s", temp_id); | 137 | if(scanf("%s", temp_id) != 1) |
138 | exit(0); | ||
139 | |||
138 | DHT_addfriend(hex_string_to_bin(temp_id)); | 140 | DHT_addfriend(hex_string_to_bin(temp_id)); |
139 | 141 | ||
140 | /* initialize networking */ | 142 | /* initialize networking */ |