*/
#include "includes.h"
-#include "smb.h"
+#include "libcli/raw/smb.h"
#include "pstring.h"
#include "lib/ldb/include/ldb.h"
-#include "system/iconv.h"
+#include "system/locale.h"
/**
* @file
**/
_PUBLIC_ void string_replace(char *s, char oldc, char newc)
{
- for (;s && *s; s++) {
+ while (*s) {
if (*s == oldc) *s = newc;
+ s++;
}
}