forked from ariadne/pkgconf
Fix uncasted use of isspace()
isspace() is intended to be used with an unsigned 8-bit input. Using isspace() with any other type of input is technically undefined behavior.
parent
2d26db3a98
commit
633433b29b
|
@ -369,7 +369,7 @@ apply_modversion(pkgconf_client_t *client, pkgconf_pkg_t *world, void *data, int
|
|||
if (name_len > strlen(queue_node->package) ||
|
||||
strncmp(pkg->why, queue_node->package, name_len) ||
|
||||
(queue_node->package[name_len] != 0 &&
|
||||
!isspace(queue_node->package[name_len]) &&
|
||||
!isspace((unsigned char)queue_node->package[name_len]) &&
|
||||
!PKGCONF_IS_OPERATOR_CHAR(queue_node->package[name_len])))
|
||||
continue;
|
||||
|
||||
|
|
Loading…
Reference in New Issue