> On Apr 23, 2016, at 02:23, luke <luke.tw at gmail.com> wrote: ... > Hi, > > Should this be MIN() ? > > (void)snprintf(tmp, sizeof(tmp), "%dld", MIN(prec, 9)); Yes.