Compare commits
No commits in common. "a531da26d326dd10af506fd941588f64eb50cda5" and "da1903721134d7996b4e7e8fccd22ac7a1a1648b" have entirely different histories.
a531da26d3
...
da19037211
@ -349,9 +349,6 @@ void scan_library_references(gpointer library_list_item, gpointer user)
|
||||
|
||||
void gds_parse_date(const char *buffer, int length, struct gds_time_field *mod_date, struct gds_time_field *access_date)
|
||||
{
|
||||
|
||||
struct gds_time_field *temp_date;
|
||||
|
||||
if (!access_date || !mod_date) {
|
||||
GDS_WARN("Date structures invalid");
|
||||
return;
|
||||
@ -362,23 +359,32 @@ void gds_parse_date(const char *buffer, int length, struct gds_time_field *mod_d
|
||||
return;
|
||||
}
|
||||
|
||||
for (temp_date = mod_date; 1; temp_date = access_date) {
|
||||
temp_date->year = gds_convert_unsigend_int16(buffer);
|
||||
buffer += 2;
|
||||
temp_date->month = gds_convert_unsigend_int16(buffer);
|
||||
buffer += 2;
|
||||
temp_date->day = gds_convert_unsigend_int16(buffer);
|
||||
buffer += 2;
|
||||
temp_date->hour = gds_convert_unsigend_int16(buffer);
|
||||
buffer += 2;
|
||||
temp_date->minute = gds_convert_unsigend_int16(buffer);
|
||||
buffer += 2;
|
||||
temp_date->second = gds_convert_unsigend_int16(buffer);
|
||||
buffer += 2;
|
||||
mod_date->year = gds_convert_unsigend_int16(buffer);
|
||||
buffer += 2;
|
||||
mod_date->month = gds_convert_unsigend_int16(buffer);
|
||||
buffer += 2;
|
||||
mod_date->day = gds_convert_unsigend_int16(buffer);
|
||||
buffer += 2;
|
||||
mod_date->hour = gds_convert_unsigend_int16(buffer);
|
||||
buffer += 2;
|
||||
mod_date->minute = gds_convert_unsigend_int16(buffer);
|
||||
buffer += 2;
|
||||
mod_date->second = gds_convert_unsigend_int16(buffer);
|
||||
buffer += 2;
|
||||
|
||||
access_date->year = gds_convert_unsigend_int16(buffer);
|
||||
buffer += 2;
|
||||
access_date->month = gds_convert_unsigend_int16(buffer);
|
||||
buffer += 2;
|
||||
access_date->day = gds_convert_unsigend_int16(buffer);
|
||||
buffer += 2;
|
||||
access_date->hour = gds_convert_unsigend_int16(buffer);
|
||||
buffer += 2;
|
||||
access_date->minute = gds_convert_unsigend_int16(buffer);
|
||||
buffer += 2;
|
||||
access_date->second = gds_convert_unsigend_int16(buffer);
|
||||
|
||||
|
||||
if (temp_date == access_date)
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
int parse_gds_from_file(const char *filename, GList **library_list)
|
||||
|
Loading…
Reference in New Issue
Block a user