main: Fix build with MSVC
Use pkgconf_strndup() since strndup() might be unavailablepull/191/head
parent
be6011222b
commit
5436558eb8
|
@ -758,7 +758,7 @@ deduce_personality(char *argv[])
|
|||
if (i == NULL)
|
||||
return pkgconf_cross_personality_default();
|
||||
|
||||
prefix = strndup(argv0, i - argv0);
|
||||
prefix = pkgconf_strndup(argv0, i - argv0);
|
||||
out = pkgconf_cross_personality_find(prefix);
|
||||
free(prefix);
|
||||
if (out == NULL)
|
||||
|
|
Loading…
Reference in New Issue