diff options
author | Jeremy Allison <jra@samba.org> | 2004-03-26 20:40:30 +0000 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2004-03-26 20:40:30 +0000 |
commit | 8431b985d66e76ab187efb617639e767142b0bb5 (patch) | |
tree | d57530258bb6e209eed68b6d6866a4dc9ea87cc9 /source | |
parent | 8e237d533eded8d218cc9c77e056823702f390f8 (diff) | |
download | samba-8431b985d66e76ab187efb617639e767142b0bb5.tar.gz samba-8431b985d66e76ab187efb617639e767142b0bb5.tar.xz samba-8431b985d66e76ab187efb617639e767142b0bb5.zip |
Always use strchr_m, not strchr on unix character sets.
Jeremy.
Diffstat (limited to 'source')
-rw-r--r-- | source/msdfs/msdfs.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/source/msdfs/msdfs.c b/source/msdfs/msdfs.c index 65622b268c4..340e5c6750a 100644 --- a/source/msdfs/msdfs.c +++ b/source/msdfs/msdfs.c @@ -189,7 +189,7 @@ static BOOL read_target_host(const char *mapfile, pstring targethost) DEBUG(10, ("Scanning mapfile [%s]\n", mapfile)); while ((s=fgets_slash(buf, sizeof(buf), f)) != NULL) { - space = strchr(buf, ' '); + space = strchr_m(buf, ' '); if (space == NULL) { DEBUG(0, ("Ignoring invalid line %s\n", buf)); @@ -234,7 +234,7 @@ static BOOL read_target_host(const char *mapfile, pstring targethost) static BOOL expand_msdfs_target(connection_struct* conn, pstring target) { pstring mapfilename; - char *filename_start = strchr(target, '@'); + char *filename_start = strchr_m(target, '@'); char *filename_end; int filename_len; pstring targethost; @@ -245,7 +245,7 @@ static BOOL expand_msdfs_target(connection_struct* conn, pstring target) return False; } - filename_end = strchr(filename_start+1, '@'); + filename_end = strchr_m(filename_start+1, '@'); if (filename_end == NULL) { DEBUG(10, ("No filename end in %s\n", target)); @@ -322,7 +322,7 @@ static BOOL parse_symlink(connection_struct* conn, char* buf, pstrcpy(target, alt_path[i]); - if (strchr(target, '@') != NULL) { + if (strchr_m(target, '@') != NULL) { if (!expand_msdfs_target(conn, target)) return False; } |