Explorar o código

core/pvapi: allow newline in parse_pvname_list()

Alex Hermann %!s(int64=14) %!d(string=hai) anos
pai
achega
b7376fe2ed
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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))
 		{