diff options
author | jospaeth <spaethj@in.tum.de> | 2020-08-30 17:13:16 +0200 |
---|---|---|
committer | jospaeth <spaethj@in.tum.de> | 2020-08-30 17:13:16 +0200 |
commit | b3d2c4c9fe8837ad962ed33189b0807c7d634923 (patch) | |
tree | 6553be5140d5a6589a30dbae07163e4bf83aa541 | |
parent | d21ce2901656f865bf7e68f43f914c3487817319 (diff) | |
download | gnunet-b3d2c4c9fe8837ad962ed33189b0807c7d634923.tar.gz gnunet-b3d2c4c9fe8837ad962ed33189b0807c7d634923.zip |
simplify strncmp to strcmp
-rw-r--r-- | src/escrow/gnunet-escrow.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/escrow/gnunet-escrow.c b/src/escrow/gnunet-escrow.c index 9f71fad32..2d6d4d141 100644 --- a/src/escrow/gnunet-escrow.c +++ b/src/escrow/gnunet-escrow.c | |||
@@ -458,11 +458,11 @@ run (void *cls, | |||
458 | } | 458 | } |
459 | 459 | ||
460 | /* determine method */ | 460 | /* determine method */ |
461 | if (!strncmp (plaintext_string, method_name, strlen (plaintext_string))) | 461 | if (!strcmp (plaintext_string, method_name)) |
462 | method = GNUNET_ESCROW_KEY_PLAINTEXT; | 462 | method = GNUNET_ESCROW_KEY_PLAINTEXT; |
463 | else if (!strncmp (gns_string, method_name, strlen (gns_string))) | 463 | else if (!strcmp (gns_string, method_name)) |
464 | method = GNUNET_ESCROW_KEY_GNS; | 464 | method = GNUNET_ESCROW_KEY_GNS; |
465 | else if (!strncmp (anastasis_string, method_name, strlen (anastasis_string))) | 465 | else if (!strcmp (anastasis_string, method_name)) |
466 | method = GNUNET_ESCROW_KEY_ANASTASIS; | 466 | method = GNUNET_ESCROW_KEY_ANASTASIS; |
467 | else | 467 | else |
468 | { | 468 | { |