Bugzilla – Attachment 273 Details for
Bug 635
PulseView crashes while importing csv file.
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Fix \r\n newline handling
0001-csv-Fix-exception-for-files-with-r-n-newlines.patch (text/plain), 706 bytes, created by
Pinky
on 2016-11-24 21:38:58 CET
(
hide
)
Description:
Fix \r\n newline handling
Filename:
MIME Type:
Creator:
Pinky
Created:
2016-11-24 21:38:58 CET
Size:
706 bytes
patch
obsolete
>From 265cff6b2e41a0dd64c0ca7de8c5b9cbc6fde05a Mon Sep 17 00:00:00 2001 >From: =?UTF-8?q?Ji=C5=99=C3=AD=20Pinkava?= <j-pi@seznam.cz> >Date: Thu, 24 Nov 2016 21:32:46 +0100 >Subject: [PATCH] csv: Fix exception for files with \r\n newlines > >--- > src/input/csv.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >diff --git a/src/input/csv.c b/src/input/csv.c >index 8d151fd..911e248 100644 >--- a/src/input/csv.c >+++ b/src/input/csv.c >@@ -705,7 +705,7 @@ static int process_buffer(struct sr_input *in) > g_strfreev(columns); > } > g_strfreev(lines); >- g_string_erase(in->buf, 0, p - in->buf->str + 1); >+ g_string_erase(in->buf, 0, p - in->buf->str + strlen(inc->termination)); > > return ret; > } >-- >2.10.2 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 635
:
153
|
168
| 273