key->type = keysym_t::LIST;
key->range = suffix - middle - 1;
- strcpy (translation, translation + 4);
+ memmove (translation, translation + 4, strlen (translation + 4) + 1);
}
else
rxvt_warn ("cannot parse list-type keysym '%s', treating as normal keysym.\n", translation);
tabs = (char *)rxvt_malloc (ncol * sizeof (char));
- for (int col = ncol; col--; )
+ for (int col = ncol; --col; )
tabs [col] = col % TABSIZE == 0;
if (current_screen != PRIMARY)
*/
rxvt_font *font = (*fontset[GET_STYLE (rend)])[GET_FONT (rend)];
- if (back == fore)
- font->clear_rect (*drawable, xpixel, ypixel, fwidth * count, fheight, back);
- else if (back == Color_bg && have_bg)
+ if (back == Color_bg && have_bg)
{
// this is very ugly, maybe push it into ->draw?