Fix endless loop with very long strings

If a string with more than UINT_MAX characters is passed into
cap_from_text, then an endless loop occurs in lookupname.

This is clearly an edge case but the fix is very simple as well:
Use size_t instead of unsigned.

Signed-off-by: Samanta Navarro <ferivoz@riseup.net>
Signed-off-by: Andrew G. Morgan <morgan@kernel.org>
1 file changed