Fixed buffer type error on linux