diff options
author | Jeremy Allison <jra@samba.org> | 2005-10-23 19:00:40 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 11:05:10 -0500 |
commit | 536900743df8a30c77482036dba9ea88b9eebf29 (patch) | |
tree | e814f268e1a66a7beddc9d46f6b465abf1a2d185 /source3 | |
parent | 4e9bc2ec5c897ca790edd989af0b6072aeef3e2f (diff) | |
download | samba-536900743df8a30c77482036dba9ea88b9eebf29.tar.gz samba-536900743df8a30c77482036dba9ea88b9eebf29.tar.bz2 samba-536900743df8a30c77482036dba9ea88b9eebf29.zip |
r11269: Ensure the new canonicalize_servicename() is mb safe.
MB service names may contain embedded ' ' characters.
Jeremy.
(This used to be commit 83d0cda858de5f40ab652e1f438808a3bfac0f81)
Diffstat (limited to 'source3')
-rw-r--r-- | source3/param/loadparm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/param/loadparm.c b/source3/param/loadparm.c index 13bb4a7d06..f084d52c26 100644 --- a/source3/param/loadparm.c +++ b/source3/param/loadparm.c @@ -2452,7 +2452,7 @@ static char *canonicalize_servicename(const char *src) static fstring canon; /* is fstring large enough? */ int dst_idx = 0; - for (; *src != '\0'; src++) { + for (; *src != '\0'; src += next_mb_char_size(src)) { if (isspace(*src)) { continue; } |