Skip to content

Commit 187c0a5

Browse files
committed
log: Fix log_make_fancy_prefix.
There was a bug in 85932055f3116b6, that limited the length of the program name in stderr logs to 10 characters only. The reason is that I misunderstood the previous code, that actually formatted the progname on *at least* 10 characters... Change-Id: I2cfc257e3813d932144a81498d369c2072d5beaf Priv-Id: 21799bea0aaa374139bc1b089c9b0a389c7bdde0
1 parent 85b353e commit 187c0a5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/core/log.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -822,7 +822,7 @@ int log_make_fancy_prefix(lstr_t progname, int pid, char fancy[static 64])
822822
TERM_COLOR_BRIGHTER(TERM_COLOR_GREEN),
823823
TERM_COLOR_BRIGHTER(TERM_COLOR_BLUE),
824824
};
825-
char buf_progname[10 + 1];
825+
char buf_progname[64];
826826
uint32_t hash;
827827
const char *color;
828828
int len;

0 commit comments

Comments
 (0)