summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn-Mark Bell <jmb@netsurf-browser.org>2021-08-15 23:32:47 +0100
committerJohn-Mark Bell <jmb@netsurf-browser.org>2021-08-15 23:32:47 +0100
commit06fae32a7ae53ad113376befbc78414374f9326b (patch)
tree7d5e48106a800f41b2756b787f6c41a91681e236
parentdeb692c00afecca0d73394feef6e99e51606b9b4 (diff)
downloadlibrufl-06fae32a7ae53ad113376befbc78414374f9326b.tar.gz
librufl-06fae32a7ae53ad113376befbc78414374f9326b.tar.bz2
RUfl_chars: fix undersized buffer
Compiling for other platforms has its benefits. The first of which is x86_64 gcc rightly complaining that the buffer to receive the error message is too small. Make it big enough.
-rw-r--r--test/rufl_chars.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/rufl_chars.c b/test/rufl_chars.c
index fd0365c..0559d4e 100644
--- a/test/rufl_chars.c
+++ b/test/rufl_chars.c
@@ -302,7 +302,7 @@ rufl_code redraw(int x, int y, int y0, int y1)
void try(rufl_code code, const char *context)
{
- char s[200];
+ char s[400];
if (code == rufl_OK)
return;
else if (code == rufl_OUT_OF_MEMORY)