speakup: Fix 8bit characters from direct synth
[sfrench/cifs-2.6.git] / drivers / accessibility / speakup / synth.c
index eea2a2fa4f0159af7ece0add14d5b23100f6d49f..45f90610313382cac117da4cbe93d1d782a96054 100644 (file)
@@ -208,8 +208,10 @@ void spk_do_flush(void)
        wake_up_process(speakup_task);
 }
 
-void synth_write(const char *buf, size_t count)
+void synth_write(const char *_buf, size_t count)
 {
+       const unsigned char *buf = (const unsigned char *) _buf;
+
        while (count--)
                synth_buffer_add(*buf++);
        synth_start();