--- yaffs2/yaffs_fs.c 2007-10-19 19:55:42.000000000 +0800 +++ yaffs_fs.c 2007-10-19 20:45:56.254642424 +0800 @@ -1556,12 +1556,14 @@ memset(cur_opt,0,MAX_OPT_LEN+1); p = 0; - while(*options_str && *options_str != ','){ - if(p < MAX_OPT_LEN){ + while(*options_str){ + if(p < MAX_OPT_LEN && *options_str != ','){ cur_opt[p] = *options_str; p++; } options_str++; + if( *options_str == ',') + break; } if(!strcmp(cur_opt,"inband-tags"))