From 5f1b55631fab4e7b7bc357240f95fe9e36909e6a Mon Sep 17 00:00:00 2001 From: Ali Gholami Rudi Date: Fri, 29 Jan 2010 11:53:10 +0330 Subject: [PATCH] pad: use memcpy instead of equals operator This fixes compiling fbpad using pcc. --- pad.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pad.c b/pad.c index debd3ab..6f56bd8 100644 --- a/pad.c +++ b/pad.c @@ -80,7 +80,7 @@ static fbval_t *bitmap(int c, short fg, short bg) bits = font_bitmap(c); if (!bits) return NULL; - cacheid[hash] = glyph; + memcpy(&cacheid[hash], &glyph, sizeof(glyph)); for (i = 0; i < nbits; i++) fbbits[i] = mixed_color(fg, bg, bits[i]); return fbbits; -- 2.11.4.GIT