Once the number exceeded
1000000000, the conversion would fail. An execution of
dp -format "%(clock{text})" "Tue, 01 Jul 2003 21:38:05 +0700" would erroneously print
749660476, instead of
1057070285.
The macros PUTD() and PUTDF() have been replaced by snprintf() calls; These macros
should never have been written in the first place, when system functions exist to do the
work.
value = dat[fmt->f_value];
break;
case FT_LV_STRLEN:
- if (str != NULL)
- value = strlen(str);
- else
- value = 0;
+ value = strlen(str);
break;
case FT_LV_CHAR_LEFT:
value = width - (cp - scanl);