From 0a5ec374c6fd02c6650f4cfedfd117da3937fc2d Mon Sep 17 00:00:00 2001 From: Alex Yatskov Date: Wed, 30 Nov 2016 09:08:46 -0800 Subject: [PATCH] Use unknown character symbol --- font.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/font.c b/font.c index 565c097..e7c7c12 100644 --- a/font.c +++ b/font.c @@ -191,8 +191,8 @@ void font_stub_encode(char output[], int size, int code, const Font_Table* table } while (0); - strncpy(output, "", size); - output[size - 1] = 0; + /* unable to decode, use output the unknown character symbol */ + encode_sequence(output, size, "\xef\xbf\xbd"); } void font_stub_decode(char output[], int size, const char input[]) {