[sr-dev] git:master: core/pvapi: allow newline in parse_pvname_list()

Alex Hermann alex at speakup.nl
Sat Aug 20 10:25:28 CEST 2011


Module: sip-router
Branch: master
Commit: b7376fe2ed4d9df55183a827e393dcb4f7ab6a5b
URL:    http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=b7376fe2ed4d9df55183a827e393dcb4f7ab6a5b

Author: Alex Hermann <alex at speakup.nl>
Committer: Alex Hermann <alex at speakup.nl>
Date:   Fri Aug 19 13:07:47 2011 +0200

core/pvapi: allow newline in parse_pvname_list()

---

 pvapi.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/pvapi.c b/pvapi.c
index eb3069c..d4104c2 100644
--- a/pvapi.c
+++ b/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))
 		{




More information about the sr-dev mailing list