From 0a7c633977b1c80f74182d96edafacaea749ae19 Mon Sep 17 00:00:00 2001 From: gardners Date: Fri, 31 Aug 2012 12:56:39 +0930 Subject: [PATCH] swapped arg order to what seemed a more sensible order. #9 --- str.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/str.c b/str.c index b572c2d4..9307cf0e 100644 --- a/str.c +++ b/str.c @@ -21,6 +21,7 @@ #include #include #include "str.h" +#include "log.h" int str_startswith(char *str, const char *substring, char **afterp) { @@ -49,6 +50,6 @@ const char *str_str(const char *s1,const char *s2,int s1len) { int s2len=strlen(s2); for(;*s1&&(s1len--);s1++) - if (!strncmp(s2,s1,s2len)) return s1; + if (!strncmp(s1,s2,s2len)) return s1; return NULL; }