mirror of
https://github.com/owntone/owntone-server.git
synced 2025-02-26 12:59:19 -05:00
[library] Fix gcc 10 warning
And avoid a year 10000 doomsday
This commit is contained in:
parent
ce2006a31b
commit
69fbd7b32a
@ -96,7 +96,7 @@ parse_disc(struct media_file_info *mfi, char *disc_string)
|
||||
static int
|
||||
parse_date(struct media_file_info *mfi, char *date_string)
|
||||
{
|
||||
char year_string[21];
|
||||
char year_string[32];
|
||||
uint32_t *year = (uint32_t *) ((char *) mfi + mfi_offsetof(year));
|
||||
uint32_t *date_released = (uint32_t *) ((char *) mfi + mfi_offsetof(date_released));
|
||||
struct tm tm = { 0 };
|
||||
|
Loading…
x
Reference in New Issue
Block a user