Fixed crash if buffer size too big in function Printf();