(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
|
@ -125,7 +125,11 @@ typed_wu(natid from, natid to, s_char *message, int type)
|
|||
(np->nat_stat & STAT_SANCT) == 0)) {
|
||||
return -1;
|
||||
}
|
||||
#if !defined(_WIN32)
|
||||
if ((fd = open(box, O_WRONLY | O_APPEND, 0)) < 0) {
|
||||
#else
|
||||
if ((fd = open(box, O_WRONLY | O_APPEND | O_BINARY, 0)) < 0) {
|
||||
#endif
|
||||
logerror("telegram 'open' of %s (#%d) failed", box, to);
|
||||
return -1;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue