X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;ds=sidebyside;f=src%2Fscreen_help.c;h=94fe9ab5b35dde881d27f40a08bb2102005a12f9;hb=9a500d13055f16b70796a5fce5ec6de4a2844187;hp=68021c6515c558563c8ba3259ffd64a55ed83678;hpb=e9f21b11c862ad168bb5a850730861e01ad6f3d8;p=ncmpc.git diff --git a/src/screen_help.c b/src/screen_help.c index 68021c6..94fe9ab 100644 --- a/src/screen_help.c +++ b/src/screen_help.c @@ -121,7 +121,7 @@ static list_window_t *lw = NULL; static char * list_callback(int index, int *highlight, void *data) { - static char buf[256]; + static char buf[512]; if( help_text_rows<0 ) { @@ -137,30 +137,30 @@ list_callback(int index, int *highlight, void *data) if( help_text[index].command == CMD_NONE ) { if( help_text[index].text ) - snprintf(buf, 256, "%28s", _(help_text[index].text)); + g_snprintf(buf, sizeof(buf), "%28s", _(help_text[index].text)); else if( help_text[index].highlight == 2 ) { int i; - for(i=3; i