[fix] datetime format memory alloc
commit28fd094ee7407cfc0e70d5e426a88190cb168fee
authorafify <hassan@afify.dev>
Sun, 19 Jul 2020 04:04:07 +0000 (19 07:04 +0300)
committerafify <hassan@afify.dev>
Sun, 19 Jul 2020 04:04:07 +0000 (19 07:04 +0300)
tree3f5b14c159e26dacb4c00bd4eec45139cb9ad351
parent4e278d8286aa473fd70f0d7fe1ad7c1588feeee3
[fix] datetime format memory alloc

- change default dtfmt to "%F %R"
- change get_fdt():
        - return strftime value
        - don't allocate memory: result_len is repeated in get_finfo()
        - get td and tdlen as args
config.def.h
sfm.c