[GLUE] Rsync SAMBA_3_2_0 SVN r25598 in order to create the v3-2-test branch.
[jerry/samba.git] / source / lib / util_str.c
index c2eeb12544e2f12db06b502ca51754822479fc5f..fbd9c1ca6daf1da762c80b4810c9f50436dd7390 100644 (file)
@@ -447,7 +447,6 @@ BOOL strisnormal(const char *s, int case_default)
  String replace.
  NOTE: oldc and newc must be 7 bit characters
 **/
-
 void string_replace( char *s, char oldc, char newc )
 {
        char *p;
@@ -995,7 +994,7 @@ BOOL in_list(const char *s, const char *list, BOOL casesensitive)
        /* We know a token can't be larger
         * than the entire list. */
 
-       tok = SMB_MALLOC(bufsize+1);
+       tok = SMB_MALLOC_ARRAY(char, bufsize+1);
        if (!tok) {
                return False;
        }