[BRLTTY] Key echo in SD

Mario Lang mlang at delysid.org
Thu Nov 27 11:34:48 EST 2008


Dave Mielke <dave at mielke.cc> writes:

> All I can do is ensure that brltty is calling the correct SD functions.

Ensuring a null-terminated string helps a lot! :-)
Problem solved.

--- a/SpeechDrivers/SpeechDispatcher/speech.c
+++ b/SpeechDrivers/SpeechDispatcher/speech.c
@@ -215,7 +215,8 @@ sayText (const void *data) {
   const SayData *say = data;

   if (say->count == 1) {
-    spd_char(connectionHandle, say->priority, (const char *)say->text);
+    const char text[2] = { say->text[0], 0 };
+    spd_char(connectionHandle, say->priority, &text[0]);
   } else {
     spd_sayf(connectionHandle, say->priority, "%.*s", say->length, say->text);
   }


-- 
CYa,
  ⡍⠁⠗⠊⠕ | Debian Developer <URL:http://debian.org/>
  .''`. | Get my public key via finger mlang/key at db.debian.org
 : :' : | 1024D/7FC1A0854909BCCDBE6C102DDFFC022A6B113E44
 `. `'
   `-      <URL:http://delysid.org/>  <URL:http://www.staff.tugraz.at/mlang/>


More information about the BRLTTY mailing list