Limit shell buffer size