summaryrefslogtreecommitdiff
path: root/name-rev.c
diff options
context:
space:
mode:
Diffstat (limited to 'name-rev.c')
-rw-r--r--name-rev.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/name-rev.c b/name-rev.c
index 817e36b..7d89401 100644
--- a/name-rev.c
+++ b/name-rev.c
@@ -217,10 +217,9 @@ int main(int argc, char **argv)
if (!strcmp(name, "undefined"))
continue;
- fwrite(p_start, p - p_start, 1, stdout);
- fputc('(', stdout);
- fputs(name, stdout);
- fputc(')', stdout);
+ fwrite(p_start, p - p_start + 1, 1,
+ stdout);
+ printf(" (%s)", name);
p_start = p + 1;
}
}