mirror of
https://github.com/ocornut/imgui.git
synced 2025-09-19 17:58:26 +00:00
Merge branch 'master' into docking
This commit is contained in:
@@ -2130,7 +2130,7 @@ void ImStrncpy(char* dst, const char* src, size_t count)
|
||||
if (count < 1)
|
||||
return;
|
||||
if (count > 1)
|
||||
strncpy(dst, src, count - 1);
|
||||
strncpy(dst, src, count - 1); // FIXME-OPT: strncpy not only doesn't guarantee 0-termination, it also always writes the whole array
|
||||
dst[count - 1] = 0;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user