Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix const cast in save-generator. #1099

Merged
merged 1 commit into from
Aug 19, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Fix const cast in save-generator.
iphydf committed Aug 19, 2018

Verified

This commit was signed with the committer’s verified signature.
commit 248902ffd44d24707501dd673aa1b6319b8df1c1
2 changes: 1 addition & 1 deletion other/fun/save-generator.c
Original file line number Diff line number Diff line change
@@ -115,7 +115,7 @@ int main(int argc, char *argv[])

Tox_Err_Set_Info err;
const uint8_t *name = (uint8_t *)argv[1];
tox_self_set_name(tox, name, strlen((char *)name), &err);
tox_self_set_name(tox, name, strlen((const char *)name), &err);

if (err != TOX_ERR_SET_INFO_OK) {
printf("Failed to set name. Error number %d\n", err);