diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2014-05-01 14:14:50 -0700 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2014-05-01 14:14:50 -0700 |
commit | c71d258024afd03b96381e258802b474e2c8f708 (patch) | |
tree | b1a469a7f44c54aa8105a4f30ba3b05d89e896f5 /uemis-downloader.c | |
parent | 9fcd6b2658b1ea43ee2670b1f915b2b548caa153 (diff) | |
download | subsurface-c71d258024afd03b96381e258802b474e2c8f708.tar.gz |
Fix Uemis SDA download
Stupid typo in commit e1a1c218 broke the Uemis download.
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'uemis-downloader.c')
-rw-r--r-- | uemis-downloader.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/uemis-downloader.c b/uemis-downloader.c index 66deffa46..3bb93703b 100644 --- a/uemis-downloader.c +++ b/uemis-downloader.c @@ -37,6 +37,10 @@ #define UEMIS_MAX_TIMEOUT 2000000 /* 2s */ #endif +#ifdef UEMIS_DEBUG +#define debugfile stderr +#endif + static char *param_buff[NUM_PARAM_BUFS]; static char *reqtxt_path; static int reqtxt_file; @@ -503,7 +507,7 @@ static bool uemis_get_answer(const char *path, char *request, int n_param_in, if (lseek(ans_file, 3, SEEK_CUR) == -1) goto fs_error; buf = malloc(size - 2); - if ((r = read(ans_file, buf, size - 3) != size - 3)) { + if ((r = read(ans_file, buf, size - 3)) != size - 3) { free(buf); goto fs_error; } |