Remove MinGW shadow warning.

Remove a shadow warning in a MinGW specific code block.
This commit is contained in:
Cary R 2010-09-24 13:10:35 -07:00 committed by Stephen Williams
parent 20f78515c8
commit 85ebc1162b
1 changed files with 3 additions and 3 deletions

View File

@ -732,10 +732,10 @@ int main(int argc, char **argv)
turning the last two \ characters to null. Then we append
the lib\ivl$(suffix) to finish. */
{ char *s;
char basepath[4096], tmp[4096];
GetModuleFileName(NULL, tmp, sizeof tmp);
char basepath[4096], tmppath[4096];
GetModuleFileName(NULL, tmppath, sizeof tmppath);
/* Convert to a short name to remove any embedded spaces. */
GetShortPathName(tmp, basepath, sizeof basepath);
GetShortPathName(tmppath, basepath, sizeof basepath);
strncpy(ivl_root, basepath, MAXSIZE);
s = strrchr(ivl_root, sep);
if (s) *s = 0;