diff options
author | Thomas Voss <mail@thomasvoss.com> | 2024-01-11 23:51:36 +0100 |
---|---|---|
committer | Thomas Voss <mail@thomasvoss.com> | 2024-01-11 23:51:36 +0100 |
commit | b17ffeb56aa179fcc0317475ede5b5523523524d (patch) | |
tree | 8bd1c5e66d4cc94c462e4c0e9e17309cd3cc85af | |
parent | b53c8a1980b81c3bcf4c8e7767ad433c01a369b0 (diff) |
Respect -z when printing filenames
-rw-r--r-- | grab.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -331,9 +331,9 @@ putm(struct sv sv, const char *filename) { if (fflag || filecnt > 1) { if (color) - printf("\33[35m%s\33[36m:\33[0m", filename); + printf("\33[35m%s\33[36m%c\33[0m", filename, zflag ? '\0' : ':'); else - printf("%s:", filename); + printf("%s%c", filename, zflag ? '\0' : ':'); } fwrite(sv.p, 1, sv.len, stdout); putchar(zflag ? '\0' : '\n'); |