diff options
Diffstat (limited to 'libpkgconf')
| -rw-r--r-- | libpkgconf/libpkgconf.h | 4 | ||||
| -rw-r--r-- | libpkgconf/license.c | 8 |
2 files changed, 6 insertions, 6 deletions
diff --git a/libpkgconf/libpkgconf.h b/libpkgconf/libpkgconf.h index 22b6c97a94f8..de646a2a54c5 100644 --- a/libpkgconf/libpkgconf.h +++ b/libpkgconf/libpkgconf.h @@ -71,8 +71,8 @@ typedef struct pkgconf_license_ pkgconf_license_t; #define PKGCONF_FOREACH_LIST_ENTRY_REVERSE(tail, value) \ for ((value) = (tail); (value) != NULL; (value) = (value)->prev) -#define LIBPKGCONF_VERSION 20992 -#define LIBPKGCONF_VERSION_STR "2.9.92" +#define LIBPKGCONF_VERSION 20993 +#define LIBPKGCONF_VERSION_STR "2.9.93" struct pkgconf_queue_ { pkgconf_node_t iter; diff --git a/libpkgconf/license.c b/libpkgconf/license.c index e9bef533584f..7c7cb21802f0 100644 --- a/libpkgconf/license.c +++ b/libpkgconf/license.c @@ -228,15 +228,15 @@ pkgconf_license_evaluate_str(pkgconf_client_t *client, pkgconf_list_t *license_l } pkgconf_license_insert(client, license_list, PKGCONF_LICENSE_BRACKET_CLOSE, ")"); } - else if (!strncasecmp(cur_word, "and", 3)) + else if (!strcasecmp(cur_word, "and")) { pkgconf_license_insert(client, license_list, PKGCONF_LICENSE_AND, "AND"); } - else if (!strncasecmp(cur_word, "or", 2)) + else if (!strcasecmp(cur_word, "or")) { pkgconf_license_insert(client, license_list, PKGCONF_LICENSE_OR, "OR"); } - else if (!strncasecmp(cur_word, "with", 2)) + else if (!strcasecmp(cur_word, "with")) { pkgconf_license_insert(client, license_list, PKGCONF_LICENSE_WITH, "WITH"); } @@ -316,7 +316,7 @@ pkgconf_license_render(pkgconf_client_t *client, const pkgconf_list_t *list, pkg frag_string = PKGCONF_BUFFER_FROM_STR(license->data); pkgconf_buffer_append(buf, pkgconf_buffer_str_or_empty(frag_string)); - if (license->type == PKGCONF_LICENSE_BRACKET_OPEN || (node->next != NULL && ((const pkgconf_license_t *)node->next)->type == PKGCONF_LICENSE_BRACKET_CLOSE)) + if (license->type == PKGCONF_LICENSE_BRACKET_OPEN || (node->next != NULL && ((const pkgconf_license_t *)node->next->data)->type == PKGCONF_LICENSE_BRACKET_CLOSE)) { is_delim = false; } |
