mirror of
https://github.com/FDOS/kernel.git
synced 2025-07-21 12:54:30 +02:00
Fix memory break on loading country information (in config.sys)
This commit is contained in:
parent
bc4615093a
commit
9f254f2bee
@ -1502,7 +1502,8 @@ STATIC BOOL LoadCountryInfo(char *filenam, UWORD ctryCode, UWORD codePage)
|
|||||||
{"\377DBCS ", &nlsDBCSHardcoded} /* 7, not supported [yet] */
|
{"\377DBCS ", &nlsDBCSHardcoded} /* 7, not supported [yet] */
|
||||||
};
|
};
|
||||||
static struct subf_hdr hdr[8];
|
static struct subf_hdr hdr[8];
|
||||||
int fd, entries, count, i;
|
static int entries, count;
|
||||||
|
int fd, i;
|
||||||
char *filename = filenam == NULL ? "\\COUNTRY.SYS" : filenam;
|
char *filename = filenam == NULL ? "\\COUNTRY.SYS" : filenam;
|
||||||
BOOL rc = FALSE;
|
BOOL rc = FALSE;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user