Infobar: Remove useless strncpy.
This commit is contained in:
parent
f4d683f17f
commit
bc94d42372
@ -194,9 +194,6 @@ infobar_draw_statustext(int sc, char *str)
|
||||
lastst = infobar[sc].statustext;
|
||||
|
||||
infobar[sc].statustext = _strdup(str);
|
||||
|
||||
strncpy(strwb, str, sizeof(strwb));
|
||||
|
||||
len = ((strlen(str) > sizeof(strwc)) ? sizeof(strwc) : strlen(str));
|
||||
|
||||
/* Search \b[;;;;#]\ blocks and store properties. */
|
||||
@ -218,6 +215,9 @@ infobar_draw_statustext(int sc, char *str)
|
||||
else
|
||||
strwc[j] = strwb[i];
|
||||
|
||||
|
||||
printf("%s\n", strwc);
|
||||
|
||||
/* Draw a first time the statustext for non colorized text */
|
||||
draw_text(infobar[sc].bar->dr, (sgeo[sc].width - SHADH) - textw(strwc),
|
||||
FHINFOBAR, infobar[sc].bar->fg, 0, strwc);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user