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