diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/irc/core/irc-cap.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/irc/core/irc-cap.c b/src/irc/core/irc-cap.c index 46276243..9af55130 100644 --- a/src/irc/core/irc-cap.c +++ b/src/irc/core/irc-cap.c @@ -86,14 +86,14 @@ static gboolean parse_cap_name(char *name, char **key, char **val) const char *eq = strchr(name, '='); /* KEY only value */ - if (!eq) { + if (eq == NULL) { *key = g_strdup(name); *val = NULL; return TRUE; } /* Some values are in a KEY=VALUE form, parse them */ else if (eq[1] != '\0') { - *key = g_strndup(name, (int)(eq - name)); + *key = g_strndup(name, (gsize)(eq - name)); *val = g_strdup(eq + 1); return TRUE; } |