changeset 136:5fa4791d6d0e

Replaced unnecessary strncmp with strcmp.
author Sascha Wilde <wilde@intevation.de>
date Mon, 24 Mar 2014 15:36:12 +0100
parents 3fb6ddd6b70d
children 7a8d960d60c9 b026e6d2a161
files common/strhelp.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/common/strhelp.c	Mon Mar 24 15:34:28 2014 +0100
+++ b/common/strhelp.c	Mon Mar 24 15:36:12 2014 +0100
@@ -110,7 +110,7 @@
   size_t l1 = strlen(s1);
   size_t l2 = strlen(s2);
   if ((l1 == l2) &&
-      (strncmp(s1, s2, l1) == 0))
+      (strcmp(s1, s2) == 0))
     return true;
   else
     return false;

http://wald.intevation.org/projects/trustbridge/