mirror of
https://github.com/qvacua/vimr.git
synced 2024-11-28 02:54:31 +03:00
Terminate cstr with \0
This commit is contained in:
parent
5ae4f5f232
commit
290988d75c
@ -379,7 +379,7 @@ static const char *cfstr2cstr(CFStringRef cfstr, bool *free_bytes) {
|
||||
}
|
||||
|
||||
*free_bytes = true;
|
||||
result[out_len] = NULL;
|
||||
result[out_len] = '\0';
|
||||
return result;
|
||||
}
|
||||
|
||||
|
@ -167,7 +167,7 @@ static const char *cfstr_to_cstr_copy(CFStringRef cfstr) {
|
||||
return NULL;
|
||||
}
|
||||
|
||||
result[out_len] = NULL;
|
||||
result[out_len] = '\0';
|
||||
return result;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user