Change how Mac OS times are declared.

This commit is contained in:
2021-04-14 04:27:45 +01:00
parent e67e74c3d9
commit 70025117eb
2 changed files with 7 additions and 7 deletions

View File

@@ -84,7 +84,7 @@ void Timestamps(const char* path)
for(i = 0; i < KNOWN_MAC_TIMES; i++)
{
memset(str255, 0, 256);
memcpy(str255, mac_times[i].filename, strlen(mac_times[i].filename));
memcpy(str255, mac_times[i].filename, strlen((const char*)mac_times[i].filename));
rc = HCreate(refNum, dirId, str255, ostUnknown, ftGenericDocumentPC);

View File

@@ -39,12 +39,12 @@ Copyright (C) 2011-2021 Natalia Portillo
typedef struct
{
char* filename;
LONGINT creation;
LONGINT modification;
LONGINT backup;
char type[13];
char message[20];
unsigned char* filename;
uint32_t creation;
uint32_t modification;
uint32_t backup;
char type[13];
char message[20];
} mac_time_tests_t;
#define KNOWN_MAC_TIMES 17