diff --git a/src/Makefile.in b/src/Makefile.in index 36e2b05744cfffaf7ca2e34cda1acc2697d58ebf..bcc7f8791336851780d9e2fea132f366a1664718 100644 --- a/src/Makefile.in +++ b/src/Makefile.in @@ -942,8 +942,8 @@ distclean-generic: maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." -@ENABLE_CDI_LIB_FALSE@install-exec-local: @ENABLE_CDI_LIB_FALSE@uninstall-local: +@ENABLE_CDI_LIB_FALSE@install-exec-local: clean: clean-am clean-am: clean-generic clean-libLTLIBRARIES clean-libtool \ diff --git a/src/stream_cdf.c b/src/stream_cdf.c index 17c0a2779deb5b0fdc6cabb98d147626f324b9de..46a86ad47ff7a1896a2a9ba222f5545b6afba463 100644 --- a/src/stream_cdf.c +++ b/src/stream_cdf.c @@ -3090,11 +3090,11 @@ bool unitsIsPressure(const char *units) { bool status = false; - if ( memcmp(units, "millibar", 8) == 0 || - memcmp(units, "mb", 2) == 0 || - memcmp(units, "hectopas", 8) == 0 || - memcmp(units, "hPa", 3) == 0 || - memcmp(units, "Pa", 2) == 0 ) + if ( strncmp(units, "millibar", 8) == 0 || + strncmp(units, "mb", 2) == 0 || + strncmp(units, "hectopas", 8) == 0 || + strncmp(units, "hPa", 3) == 0 || + strncmp(units, "Pa", 2) == 0 ) { status = true; }