If you do not use printf(), 1024 is fine. If you do use printf(), you need at least 1500-ish.