* src/utils.c (match_tail): Fix unsigned integer overflow

This commit is contained in:
Tim Rühsen 2018-04-27 12:06:42 +02:00
parent 7de006bade
commit 734d0aee15

View File

@ -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. */