[BRLTTY] Brltty not working on Arch
Samuel Thibault
samuel.thibault at ens-lyon.org
Thu May 29 18:48:00 EDT 2014
Hello,
At last I get time to get back to this.
Vojtěch Polášek, le Tue 22 Apr 2014 12:52:16 +0200, a écrit :
> ./apitest -b localhost -a /etc/brlapi.key -d
>
> 2014-04-22 at 12:34:45.949 res != (size_t) -1 not met: invalid charset
> conversion
It seems we haven't tested apitest for a long time... apitest.c is
bogus, here is a patch. Dave, could you commit it?
Thanks,
Samuel
-------------- next part --------------
diff --git a/Programs/apitest.c b/Programs/apitest.c
index a919f28..e4b583b 100644
--- a/Programs/apitest.c
+++ b/Programs/apitest.c
@@ -137,12 +137,13 @@ static void showDots(void)
exit(PROG_EXIT_SEMANTIC);
}
{
- char text[x*y];
+ char text[x*y+1];
unsigned char or[x*y];
brlapi_writeArguments_t wa = BRLAPI_WRITEARGUMENTS_INITIALIZER;
fprintf(stderr,"Showing dot patterns\n");
memcpy(text,DOTS_TEXT,DOTS_TEXTLEN);
memset(text+DOTS_TEXTLEN,' ',sizeof(text)-DOTS_TEXTLEN);
+ text[x*y] = 0;
wa.regionBegin = 1;
wa.regionSize = sizeof(or);
wa.text = text;
More information about the BRLTTY
mailing list