Author: jra
Date: 2005-10-23 19:00:37 +0000 (Sun, 23 Oct 2005)
New Revision: 11268

WebSVN: 
http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=11268

Log:
Ensure the new canonicalize_servicename() is mb safe.
MB service names may contain embedded ' ' characters.
Jeremy.

Modified:
   trunk/source/param/loadparm.c


Changeset:
Modified: trunk/source/param/loadparm.c
===================================================================
--- trunk/source/param/loadparm.c       2005-10-23 17:22:00 UTC (rev 11267)
+++ trunk/source/param/loadparm.c       2005-10-23 19:00:37 UTC (rev 11268)
@@ -2452,7 +2452,7 @@
        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;
                }

Reply via email to