(wrmakesrc,wripglob,wrgamesdef,info,apro,mobupdate,rea,turn
upda,ef_open,logerror,emp_config,match_user,show_motd,gamedown, typed_wu,delete_old_announcements,mobility_check,mobility_init, allocate_memory,write_newcap_script,main,files,fairland,doconfig,) [_WIN32]: Switchback to default mode of text. "t" (text) is not included the ISO/ANSI C standard but "b" (binary) is included.
This commit is contained in:
parent
d4af51c9e2
commit
55e6aca9e0
17 changed files with 28 additions and 41 deletions
|
@ -305,7 +305,7 @@ info(void)
|
|||
name = "TOP";
|
||||
|
||||
_snprintf(filename, sizeof(filename) - 1, "%s\\%s", infodir, name);
|
||||
fp = fopen(filename, "r");
|
||||
fp = fopen(filename, "rb");
|
||||
if (fp == NULL) {
|
||||
/* may be a "partial" request. */
|
||||
HANDLE hDir;
|
||||
|
@ -365,7 +365,7 @@ info(void)
|
|||
}
|
||||
_snprintf(filename, sizeof(filename), "%s/%s",
|
||||
infodir, last);
|
||||
fp = fopen(filename, "r");
|
||||
fp = fopen(filename, "rb");
|
||||
if (fp == NULL) {
|
||||
pr("Error reading info file for %s\n", name);
|
||||
logerror("Cannot open for \"%s\" info file (%s)",
|
||||
|
@ -455,7 +455,7 @@ apro(void)
|
|||
(fData.dwFileAttributes == FILE_ATTRIBUTE_READONLY))) {
|
||||
_snprintf(filename, sizeof(filename), "%s\\%s", infodir,
|
||||
fData.cFileName);
|
||||
fp = fopen(filename, "r");
|
||||
fp = fopen(filename, "rb");
|
||||
alreadyhit = 0;
|
||||
nll = nlhl = 0;
|
||||
if (fp != NULL) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue