winebuild: Cast-qual warning fix.
diff --git a/tools/winebuild/import.c b/tools/winebuild/import.c index 634eb07..2241fa5 100644 --- a/tools/winebuild/import.c +++ b/tools/winebuild/import.c
@@ -147,10 +147,11 @@ { ORDDEF func, *odp, **res = NULL; - func.name = (char *)name; + func.name = xstrdup(name); func.ordinal = -1; odp = &func; if (table) res = bsearch( &odp, table, size, sizeof(*table), func_cmp ); + free( func.name ); return res ? *res : NULL; }