diff options
| author | B. Watson <urchlay@slackware.uk> | 2024-12-23 14:07:50 -0500 |
|---|---|---|
| committer | B. Watson <urchlay@slackware.uk> | 2024-12-23 14:07:50 -0500 |
| commit | e7d59f1e6ef99573b7432dbbeab25da6d7289c4b (patch) | |
| tree | 8934630417c38250aa23e60950f9f9d39b654d38 | |
| parent | 6d2c1195f8a3792da1749466b6af587b2154062c (diff) | |
| download | uxd-e7d59f1e6ef99573b7432dbbeab25da6d7289c4b.tar.gz | |
force binary mode for stdin (might help with a windows port?)
| -rw-r--r-- | uxd.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -188,6 +188,7 @@ void version(void) { void open_input(const char *arg) { if(!arg || (strcmp(arg, "-") == 0)) { input = stdin; + freopen(NULL, "rb", stdin); } else { input = fopen(arg, "rb"); if(!input) { |
