mirror of
https://github.com/bobbimanners/emailler.git
synced 2024-06-06 02:29:32 +00:00
Fixed a file-reading bug
This commit is contained in:
parent
1b92f78e48
commit
9c5bc1a270
|
@ -253,8 +253,8 @@ void readtimezonefile(void) {
|
||||||
strcpy(dst_tz_code, "EDT");
|
strcpy(dst_tz_code, "EDT");
|
||||||
dst_tz_secs = -14400;
|
dst_tz_secs = -14400;
|
||||||
}
|
}
|
||||||
fscanf(fp, "%s,%u", nondst_tz_code, &nondst_tz_secs);
|
fscanf(fp, "%d,%s", &nondst_tz_secs, nondst_tz_code);
|
||||||
fscanf(fp, "%s,%u", dst_tz_code, &dst_tz_secs);
|
fscanf(fp, "%d,%s", &dst_tz_secs, dst_tz_code);
|
||||||
nondst_tz_code[3] = dst_tz_code[3] = 0;
|
nondst_tz_code[3] = dst_tz_code[3] = 0;
|
||||||
fclose(fp);
|
fclose(fp);
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,3 +1,3 @@
|
||||||
EST,-18000
|
-18000,EST
|
||||||
EDT,-14400
|
-14400,EDT
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user