From: jake Date: Sun, 22 Oct 2006 14:28:54 +0000 (+0000) Subject: Fix bug 1173, remove the space after the comma in CSV lines X-Git-Url: http://git.samba.org/samba.git/?p=obnox%2Fwireshark%2Fwip.git;a=commitdiff_plain;h=127f0f621a6c9c3e73e6c4ac679e82e23d3dd8c2 Fix bug 1173, remove the space after the comma in CSV lines git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@19660 f5534014-38df-0310-8fa8-9805f1628bb7 --- diff --git a/print.c b/print.c index 5a43a2a8b7..a4c153e0f9 100644 --- a/print.c +++ b/print.c @@ -550,13 +550,13 @@ proto_tree_write_csv(epan_dissect_t *edt, FILE *fh) /* if this is the first packet, we have to write the CSV header */ if(edt->pi.fd->num == 1) { for(i=0; i < edt->pi.cinfo->num_cols - 1; i++) - fprintf(fh, "\"%s\", ", edt->pi.cinfo->col_title[i]); + fprintf(fh, "\"%s\",", edt->pi.cinfo->col_title[i]); fprintf(fh, "\"%s\"\n", edt->pi.cinfo->col_title[i]); } for(i=0; i < edt->pi.cinfo->num_cols - 1; i++) - fprintf(fh, "\"%s\", ", edt->pi.cinfo->col_data[i]); + fprintf(fh, "\"%s\",", edt->pi.cinfo->col_data[i]); fprintf(fh, "\"%s\"\n", edt->pi.cinfo->col_data[i]); }