mirror of
https://github.com/bobbimanners/emailler.git
synced 2025-02-20 10:29:01 +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");
|
||||
dst_tz_secs = -14400;
|
||||
}
|
||||
fscanf(fp, "%s,%u", nondst_tz_code, &nondst_tz_secs);
|
||||
fscanf(fp, "%s,%u", dst_tz_code, &dst_tz_secs);
|
||||
fscanf(fp, "%d,%s", &nondst_tz_secs, nondst_tz_code);
|
||||
fscanf(fp, "%d,%s", &dst_tz_secs, dst_tz_code);
|
||||
nondst_tz_code[3] = dst_tz_code[3] = 0;
|
||||
fclose(fp);
|
||||
}
|
||||
|
@ -1,3 +1,3 @@
|
||||
EST,-18000
|
||||
EDT,-14400
|
||||
-18000,EST
|
||||
-14400,EDT
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user