sclang: prevent buffer overflow

Signed-off-by: Tim Blechmann <tim@klingt.org>