Skip to content

Commit cd8e449

Browse files
authored
Merge pull request #161 from neheb/f
Fix format security warning in newer GCC
2 parents 7879bf3 + 194854b commit cd8e449

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/io.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ nc_ssl_error_get_reasons(void)
6262
ERRMEM;
6363
return NULL;
6464
}
65-
reason_len += sprintf(reasons + reason_len, ERR_reason_error_string(e));
65+
reason_len += sprintf(reasons + reason_len, "%s", ERR_reason_error_string(e));
6666
}
6767

6868
return reasons;

0 commit comments

Comments
 (0)