Commit 50f952e6 authored by Simon McVittie's avatar Simon McVittie
Browse files

ld-libs: Ensure consistent signedness in MIN()



With clang:
error: comparison of integers of different signs: 'long' and 'unsigned long' [-Werror,-Wsign-compare]
Signed-off-by: Simon McVittie's avatarSimon McVittie <smcv@collabora.com>
parent 15444a2e
......@@ -446,7 +446,7 @@ search_ldpath (const char *name, const char *ldpath, ld_libs_t *ldlibs, int i)
end = strchr( sp, ':' );
if( end )
len = MIN((end - sp), PATH_MAX - plen - 1);
len = MIN((size_t) (end - sp), PATH_MAX - plen - 1);
else
len = MIN(strlen( sp ), PATH_MAX - plen - 1);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment