Dave Mielke <[EMAIL PROTECTED]> 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/[EMAIL PROTECTED]
: :' : | 1024D/7FC1A0854909BCCDBE6C102DDFFC022A6B113E44
`. `'
`- <URL:http://delysid.org/> <URL:http://www.staff.tugraz.at/mlang/>
_______________________________________________
This message was sent via the BRLTTY mailing list.
To post a message, send an e-mail to: [email protected]
For general information, go to: http://mielke.cc/mailman/listinfo/brltty