diff options
Diffstat (limited to 'source4/lib')
-rw-r--r-- | source4/lib/socket_wrapper/config.mk | 1 | ||||
-rw-r--r-- | source4/lib/util/util_str.c | 3 |
2 files changed, 3 insertions, 1 deletions
diff --git a/source4/lib/socket_wrapper/config.mk b/source4/lib/socket_wrapper/config.mk index baa11b4675..9e194230dc 100644 --- a/source4/lib/socket_wrapper/config.mk +++ b/source4/lib/socket_wrapper/config.mk @@ -6,5 +6,6 @@ SO_VERSION = 0 DESCRIPTION = Wrapper library for testing TCP/IP connections using Unix Sockets PUBLIC_HEADERS = socket_wrapper.h OBJ_FILES = socket_wrapper.o +PRIVATE_DEPENDENCIES = EXT_SOCKET # End SUBSYSTEM SOCKET_WRAPPER ############################## diff --git a/source4/lib/util/util_str.c b/source4/lib/util/util_str.c index df9fd44cd6..ec6a1cbbea 100644 --- a/source4/lib/util/util_str.c +++ b/source4/lib/util/util_str.c @@ -775,8 +775,9 @@ _PUBLIC_ int strwicmp(const char *psz1, const char *psz2) **/ _PUBLIC_ void string_replace(char *s, char oldc, char newc) { - for (;s && *s; s++) { + while (*s) { if (*s == oldc) *s = newc; + s++; } } |