diff options
Diffstat (limited to 'rpmdb/header.c')
-rw-r--r-- | rpmdb/header.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/rpmdb/header.c b/rpmdb/header.c index 2f791a827..3b2a0de65 100644 --- a/rpmdb/header.c +++ b/rpmdb/header.c @@ -3178,8 +3178,8 @@ static char * realDateFormat(rpm_tagtype_t type, rpm_constdata_t data, val = xmalloc(50 + padding); strcat(formatPrefix, "s"); - /* this is important if sizeof(int32_t) ! sizeof(time_t) */ - { time_t dateint = *((const int32_t *) data); + /* this is important if sizeof(rpm_time_t) ! sizeof(time_t) */ + { time_t dateint = *((const rpm_time_t *) data); tstruct = localtime(&dateint); } buf[0] = '\0'; |