aboutsummaryrefslogtreecommitdiff
path: root/c/tools
diff options
context:
space:
mode:
authorEugene Kliuchnikov <eustas@google.com>2017-08-24 13:29:48 +0200
committerGitHub <noreply@github.com>2017-08-24 13:29:48 +0200
commit653543541319e2318d2fc572cf5c7f3275b9c12c (patch)
tree171c39078ed1944327083e7125bc2ee59160e67e /c/tools
parent4f455cac329d0c612887123c9dc6de9a66fa8490 (diff)
downloadbrotli-653543541319e2318d2fc572cf5c7f3275b9c12c.tar.gz
Update (#589)
* cleanup * fix `unbrotli` CLI * Java retouch for faster JS decoder
Diffstat (limited to 'c/tools')
-rwxr-xr-xc/tools/brotli.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/c/tools/brotli.c b/c/tools/brotli.c
index fe20e0d..557ec93 100755
--- a/c/tools/brotli.c
+++ b/c/tools/brotli.c
@@ -146,7 +146,7 @@ static Command ParseAlias(const char* name) {
size_t unbrotli_len = strlen(unbrotli);
name = FileName(name);
/* Partial comparison. On Windows there could be ".exe" suffix. */
- if (strncmp(name, unbrotli, unbrotli_len)) {
+ if (strncmp(name, unbrotli, unbrotli_len) == 0) {
char terminator = name[unbrotli_len];
if (terminator == 0 || terminator == '.') return COMMAND_DECOMPRESS;
}