From: Behdad Esfahbod Date: Wed, 4 Feb 2009 01:31:30 +0000 (-0500) Subject: [win32] Fix usage of GetFullPathName() X-Git-Tag: 2.7.0~106 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=e62058abb9cf04b3f2270a45f3c0760287f12033;p=fontconfig.git [win32] Fix usage of GetFullPathName() Diego Santa Cruz pointed out that we are using that API wrongly. The forth argument is a pointer to a pointer. Turns out we don't need that arugment and it accepts NULL, so just pass that. --- diff --git a/src/fcstr.c b/src/fcstr.c index 1d94692..dc7807d 100644 --- a/src/fcstr.c +++ b/src/fcstr.c @@ -968,10 +968,8 @@ FcStrCanonFilename (const FcChar8 *s) { #ifdef _WIN32 FcChar8 full[FC_MAX_FILE_LEN + 2]; - FcChar8 basename[FC_MAX_FILE_LEN + 2]; int size = GetFullPathName (s, sizeof (full) -1, - full, - basename); + full, NULL); if (size == 0) perror ("GetFullPathName");