diff options
author | Jaap Keuter <jaap.keuter@xs4all.nl> | 2006-02-21 11:48:40 +0000 |
---|---|---|
committer | Jaap Keuter <jaap.keuter@xs4all.nl> | 2006-02-21 11:48:40 +0000 |
commit | 48f6c25460bb62ce53a00b1380c51caf3178a3e1 (patch) | |
tree | 64cb8c8e3e68489fe70aa7dde9a2c9f4f9ae2c46 /plugins | |
parent | 335a8e283110e6b4b784cd40763e988f4d54011b (diff) |
Fix for bug 756. Handle CR as part of separator as well.
svn path=/trunk/; revision=17359
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/megaco/packet-megaco.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/megaco/packet-megaco.c b/plugins/megaco/packet-megaco.c index 974f85e544..30cd020232 100644 --- a/plugins/megaco/packet-megaco.c +++ b/plugins/megaco/packet-megaco.c @@ -2793,7 +2793,7 @@ static gint tvb_skip_wsp(tvbuff_t* tvb, gint offset ){ for(counter = offset; counter < end && ((tempchar = tvb_get_guint8(tvb,counter)) == ' ' || - tempchar == '\t'|| tempchar == '\n');counter++); + tempchar == '\t' || tempchar == '\n' || tempchar == '\r'); counter++); return (counter); } static gint tvb_skip_wsp_return(tvbuff_t* tvb, gint offset){ @@ -2804,7 +2804,7 @@ static gint tvb_skip_wsp_return(tvbuff_t* tvb, gint offset){ for(counter = offset; counter > end && ((tempchar = tvb_get_guint8(tvb,counter)) == ' ' || - tempchar == '\t'|| tempchar == '\n');counter--); + tempchar == '\t' || tempchar == '\n' || tempchar == '\r'); counter--); counter++; return (counter); } |