sclang: prevent buffer overflow

Signed-off-by: Tim Blechmann <tim@klingt.org>
(cherry picked from commit c52bcef8dd86904e9fe67ecdf1252dec26001333)