浏览代码

core/pvapi: allow newline in parse_pvname_list()

Alex Hermann 14 年之前
父节点
当前提交
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))
 		{