diff options
author | iphydf <iphydf@users.noreply.github.com> | 2018-08-19 11:51:00 +0000 |
---|---|---|
committer | iphydf <iphydf@users.noreply.github.com> | 2018-08-19 11:51:00 +0000 |
commit | 248902ffd44d24707501dd673aa1b6319b8df1c1 (patch) | |
tree | 5d11d7543609a1a30157952efcd4aae5d42c7274 /other | |
parent | 30960dcc7e9661f431d58081d79dc88692bdb50d (diff) |
Fix const cast in save-generator.
Diffstat (limited to 'other')
-rw-r--r-- | other/fun/save-generator.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/other/fun/save-generator.c b/other/fun/save-generator.c index 82b83e72..e73a2f01 100644 --- a/other/fun/save-generator.c +++ b/other/fun/save-generator.c | |||
@@ -115,7 +115,7 @@ int main(int argc, char *argv[]) | |||
115 | 115 | ||
116 | Tox_Err_Set_Info err; | 116 | Tox_Err_Set_Info err; |
117 | const uint8_t *name = (uint8_t *)argv[1]; | 117 | const uint8_t *name = (uint8_t *)argv[1]; |
118 | tox_self_set_name(tox, name, strlen((char *)name), &err); | 118 | tox_self_set_name(tox, name, strlen((const char *)name), &err); |
119 | 119 | ||
120 | if (err != TOX_ERR_SET_INFO_OK) { | 120 | if (err != TOX_ERR_SET_INFO_OK) { |
121 | printf("Failed to set name. Error number %d\n", err); | 121 | printf("Failed to set name. Error number %d\n", err); |