diff options
author | Karl Heuer <kwzh@gnu.org> | 1995-04-13 17:06:05 +0000 |
---|---|---|
committer | Karl Heuer <kwzh@gnu.org> | 1995-04-13 17:06:05 +0000 |
commit | 7a804c76c41ab524a16d4feb71fecd5880270742 (patch) | |
tree | e65d21ee23afb7a87ff71294ca189e8a0eedfbb6 /lib-src/b2m.c | |
parent | 0d4178ee2c52d5cc110c274566333523318be972 (diff) | |
download | emacs-7a804c76c41ab524a16d4feb71fecd5880270742.tar.gz |
(main): Check for trailing ", " before trying to delete it.
Diffstat (limited to 'lib-src/b2m.c')
-rw-r--r-- | lib-src/b2m.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib-src/b2m.c b/lib-src/b2m.c index 416db6385ff..526d173acb6 100644 --- a/lib-src/b2m.c +++ b/lib-src/b2m.c @@ -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; |