The sprintf function should correctly truncate string slices when a precision is specified that is smaller than the slice length. The sprintf function misbehaves when using a precision number with a ...