2
0
Эх сурвалжийг харах

core/pvapi: allow newline in parse_pvname_list()

Alex Hermann 14 жил өмнө
parent
commit
b7376fe2ed
1 өөрчлөгдсөн 1 нэмэгдсэн , 1 устгасан
  1. 1 1
      pvapi.c

+ 1 - 1
pvapi.c

@@ -1097,7 +1097,7 @@ pvname_list_t* parse_pvname_list(str *in, unsigned int type)
 	p = in->s;
 	while(is_in_str(p, in))
 	{
-		while(is_in_str(p, in) && (*p==' '||*p=='\t'||*p==','||*p==';'))
+		while(is_in_str(p, in) && (*p==' '||*p=='\t'||*p==','||*p==';'||*p=='\n'))
 			p++;
 		if(!is_in_str(p, in))
 		{