diff options
author | Tim Rühsen <tim.ruehsen@gmx.de> | 2018-04-27 12:06:42 +0200 |
---|---|---|
committer | Tim Rühsen <tim.ruehsen@gmx.de> | 2018-04-27 12:56:25 +0200 |
commit | 734d0aee1578694f7c5afffdc1e49ae8849f8afd (patch) | |
tree | 440c085f45e12f7eab08a6720356c71010cd61c3 | |
parent | 7de006bade072a8bf53d62a7d5b0bc4fdd8bfed5 (diff) | |
download | wget-734d0aee1578694f7c5afffdc1e49ae8849f8afd.tar.gz |
* src/utils.c (match_tail): Fix unsigned integer overflow
-rw-r--r-- | src/utils.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/utils.c b/src/utils.c index 6694132e..ec55f2e0 100644 --- a/src/utils.c +++ b/src/utils.c @@ -1153,7 +1153,7 @@ accdir (const char *directory) bool match_tail (const char *string, const char *tail, bool fold_case) { - int pos = strlen (string) - strlen (tail); + int pos = (int) strlen (string) - (int) strlen (tail); if (pos < 0) return false; /* tail is longer than string. */ |