Skip to content
Snippets Groups Projects
Commit f9af4f3d authored by Karel Slaný's avatar Karel Slaný Committed by Ondřej Surý
Browse files

Fixed comparison of signed and unsigned type.

parent d4edebc4
Branches
Tags
No related merge requests found
......@@ -182,7 +182,7 @@ static struct kr_cookie_secret *new_sq_from_hexstr(const JsonNode *node)
const char *hexstr = node->string_;
uint8_t *data = sq->data;
for (int i = 0; i < len; i += 2) {
for (size_t i = 0; i < len; i += 2) {
int num = hexbyte2int(hexstr + i);
if (num == -1) {
free(sq);
......
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