TT#114315 pv_headers: fix split detection marker, take two

missing change from backport was causing core dump

Change-Id: I39b12cf6a9eb0549f64b06644da6f6b3d1ee5e7f
mr7.5.8
Victor Seva 5 years ago
parent 69cd7f7093
commit 70abee9d2b
No known key found for this signature in database
GPG Key ID: B1589889727198E0

@ -541,7 +541,7 @@ index 0000000..30bd1da
+ $var(test) = $x_rr;
diff --git a/src/modules/pv_headers/pv_headers.c b/src/modules/pv_headers/pv_headers.c
new file mode 100644
index 0000000..7683293
index 0000000..30d944c
--- /dev/null
+++ b/src/modules/pv_headers/pv_headers.c
@@ -0,0 +1,2170 @@
@ -1652,7 +1652,7 @@ index 0000000..7683293
+ if(!marker)
+ marker = pv_detect_split_char(s->s);
+ while (idx < s->len) {
+ strncpy(p, s->s+idx++,1);
+ p = s->s + idx++;
+ if (keep_spaces == 0 && strncmp(p, " ", 1) == 0)
+ continue;
+ if (p == marker) {

Loading…
Cancel
Save