Commit 7a804c76 authored by Karl Heuer's avatar Karl Heuer
Browse files

(main): Check for trailing ", " before trying to delete it.

parent 0d4178ee
......@@ -131,7 +131,9 @@ main (argc, argv)
while (p = strtok (NULL, " ,\r\n\t"))
labels = concat (labels, p, ", ");
labels[strlen (labels) - 2] = '\0';
p = &labels[strlen (labels) - 2];
if (*p == ',')
*p = '\0';
printing = header = FALSE;
labels_saved = TRUE;
continue;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment