https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=241258
--- Comment #2 from sig...@gmail.com --- And here it is without the tabs messed up even. Index: lib/libpmc/pmu-events/jevents.c =================================================================== --- lib/libpmc/pmu-events/jevents.c (revision 353534) +++ lib/libpmc/pmu-events/jevents.c (working copy) @@ -117,13 +117,14 @@ static void fixdesc(char *s) { char *e = s + strlen(s); - /* Remove trailing dots that look ugly in perf list */ - --e; - while (e >= s && isspace(*e)) - --e; - if (*e == '.') - *e = 0; + while (e-- > s) { + if (isspace(*e)) + continue; + if ('.' == *e) + *e = '\0'; + break; + } } /* Add escapes for '\' so they are proper C strings. */ -- You are receiving this mail because: You are the assignee for the bug. _______________________________________________ freebsd-bugs@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-bugs To unsubscribe, send any mail to "freebsd-bugs-unsubscr...@freebsd.org"