From: ho.namkoong Date: Tue, 17 Dec 2013 04:09:35 +0000 (+0900) Subject: SDB: change strnlen -> s_strnlen X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b5501ada1fab3249c65457c6e5f5ff8d4e9b2b25;p=sdk%2Ftools%2Fsdb.git SDB: change strnlen -> s_strnlen Mingw does not have strnlen Change-Id: I686df6a00fe0bf8d0e41cfc902b2a43633468ed8 Signed-off-by: ho.namkoong --- diff --git a/src/listener.c b/src/listener.c old mode 100644 new mode 100755 index 0ab08b5..2ade2cc --- a/src/listener.c +++ b/src/listener.c @@ -27,6 +27,7 @@ #include #include #include +#include #include "log.h" #include "listener.h" diff --git a/src/strutils.c b/src/strutils.c index 062f959..987851a 100755 --- a/src/strutils.c +++ b/src/strutils.c @@ -119,7 +119,7 @@ char* strlchr(const char*s, int chr) { if(s == NULL) { return NULL; } - int len = strnlen(s, PATH_MAX); + int len = s_strnlen(s, PATH_MAX); int i = len - 1; for(; i>-1; i--) { if(s[i] == chr) { @@ -138,7 +138,7 @@ char* trim(char *s) { void rtrim(char* s) { - int len = strnlen(s, PATH_MAX) - 1; + int len = s_strnlen(s, PATH_MAX) - 1; char* t = s + len; for(; len > -1; len--) {