Skip to content

Commit

Permalink
warning.
Browse files Browse the repository at this point in the history
  • Loading branch information
Andersbakken committed Nov 5, 2022
1 parent 40e450c commit 40bf8c7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/RTags.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ String encodeUrlComponent(const String &str)
} else if (isalnum(c) || c == '-' || c == '_' || c == '.' || c == '~') {
new_str += c;
} else {
sprintf(bufHex,"%X",c);
snprintf(bufHex, sizeof(bufHex), "%X", c);
if (ic < 16) {
new_str += "%0";
} else {
Expand Down

0 comments on commit 40bf8c7

Please sign in to comment.