svn commit: samba r11269 - in branches/SAMBA_3_0/source/param: .

jra at samba.org jra at samba.org
Sun Oct 23 19:00:41 GMT 2005


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

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

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

Modified:
   branches/SAMBA_3_0/source/param/loadparm.c


Changeset:
Modified: branches/SAMBA_3_0/source/param/loadparm.c
===================================================================
--- branches/SAMBA_3_0/source/param/loadparm.c	2005-10-23 19:00:37 UTC (rev 11268)
+++ branches/SAMBA_3_0/source/param/loadparm.c	2005-10-23 19:00:40 UTC (rev 11269)
@@ -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;
 		}



More information about the samba-cvs mailing list