diff options
| author | Franklin Wei <git@fwei.tk> | 2015-05-16 14:14:16 -0400 |
|---|---|---|
| committer | Franklin Wei <git@fwei.tk> | 2015-05-16 14:14:16 -0400 |
| commit | 2bb97375378c24bc62fea9445f5b445291e0a9ee (patch) | |
| tree | 07b505348c524be452cf85121192731d2a1d2738 /src/load.c | |
| parent | 2ffadc256f7d7e5f0c3fc5f58aef4191eaa2607b (diff) | |
| download | market-sim-2bb97375378c24bc62fea9445f5b445291e0a9ee.zip market-sim-2bb97375378c24bc62fea9445f5b445291e0a9ee.tar.gz market-sim-2bb97375378c24bc62fea9445f5b445291e0a9ee.tar.bz2 market-sim-2bb97375378c24bc62fea9445f5b445291e0a9ee.tar.xz | |
stuff
Diffstat (limited to 'src/load.c')
| -rw-r--r-- | src/load.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -2,7 +2,7 @@ /* NOTE: integers are represented internally by unsigned long long ints, but in the save they are always 64 bits */ -#define FAIL() exit(*(char*)NULL); +#define FAIL() exit(EXIT_FAILURE); uint64_t read_be64(FILE *f) { @@ -52,7 +52,7 @@ void load_handler(struct player_t *player) char magic[6]; if(!f || fread(magic, 1, sizeof(magic), f) != 6 || memcmp(magic, "PORTv2", sizeof(magic)) != 0) { - printf("FATAL: Failed to load save."); + printf("FATAL: Failed to load save.\n"); exit(EXIT_FAILURE); } |