ts: replace overlapping strcpy with shorter code
function old new delta ts_main 401 398 -3 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
parent
f370a66b26
commit
3395e2a8ef
@ -42,7 +42,8 @@ int ts_main(int argc UNUSED_PARAM, char **argv)
|
|||||||
frac = is_suffixed_with(fmt_dt2str, "%.s");
|
frac = is_suffixed_with(fmt_dt2str, "%.s");
|
||||||
if (frac) {
|
if (frac) {
|
||||||
frac++;
|
frac++;
|
||||||
strcpy(frac, frac + 1);
|
frac[0] = frac[1];
|
||||||
|
frac[1] = '\0';
|
||||||
}
|
}
|
||||||
|
|
||||||
#define date_buf bb_common_bufsiz1
|
#define date_buf bb_common_bufsiz1
|
||||||
|
Loading…
Reference in New Issue
Block a user