Minor bugfix in gzip decoder

This commit is contained in:
N9OZB
2019-07-30 04:03:43 -05:00
parent 4065603692
commit 1c365dd6f9
3 changed files with 9 additions and 6 deletions

View File

@@ -1,4 +1,7 @@
SIGNAL SERVER CHANGELOG
SIGNAL SERVER CHANGELOG
3.21 Beta - 30 Jul 2019 - N9OZB Mods, minor fix
Fixed a minor bug in the Gzip decoding routines, gzerror() not coming back NULL?
3.20 Beta - 14 Jul 2019 - N9OZB Mods
1. Added .GZ (Gzip) file processing for .sdf.gz DEM tiles.

View File

@@ -1002,8 +1002,8 @@ char *GZfgets(char *output, gzFile gzfd, unsigned length)
}
}
if (debug && errmsg != NULL) {
fprintf(stderr, "GZfgets: errmsg = [%s]\n", errmsg);
if (debug && (errmsg != NULL) && (gzerr != Z_OK && gzerr != Z_STREAM_END)) {
fprintf(stderr, "GZfgets: gzerr = %d, errmsg = [%s]\n", gzerr, errmsg);
fflush(stderr);
}
return (output);
@@ -1127,8 +1127,8 @@ int LoadSDF_GZ(char *name)
if (gzerr != Z_OK || pos == EOF)
return -errno;
if (debug && errmsg != NULL) {
fprintf(stderr, "LoadSDF_GZ: errmsg = [%s]\n", errmsg);
if (debug && (errmsg != NULL) && (gzerr != Z_OK && gzerr != Z_STREAM_END)) {
fprintf(stderr, "LoadSDF_GZ: gzerr = %d, errmsg = [%s]\n", gzerr, errmsg);
fflush(stderr);
}

View File

@@ -1,4 +1,4 @@
double version = 3.20;
double version = 3.21;
/****************************************************************************\
* Signal Server: Radio propagation simulator by Alex Farrant QCVS, 2E0TDW *
******************************************************************************