Remove use of non-standard function strdup

Related to #873.
This commit is contained in:
Camilla Löwy
2018-01-17 11:56:35 +01:00
parent bb3ab87a18
commit 973bf29622
11 changed files with 29 additions and 19 deletions

View File

@@ -264,7 +264,7 @@ void _glfwPollMonitorsNS(void)
const CGSize size = CGDisplayScreenSize(displays[i]);
char* name = getDisplayName(displays[i]);
if (!name)
name = strdup("Unknown");
name = _glfw_strdup("Unknown");
monitor = _glfwAllocMonitor(name, size.width, size.height);
monitor->ns.displayID = displays[i];