From 80294709c51c04696c569700500b1b8217e52115 Mon Sep 17 00:00:00 2001 From: Andrew Talbot Date: Wed, 11 Oct 2006 15:11:04 +0100 Subject: [PATCH] winebuild: Cast-qual warning fix. --- tools/winebuild/import.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/winebuild/import.c b/tools/winebuild/import.c index 634eb074ee..2241fa5ca5 100644 --- a/tools/winebuild/import.c +++ b/tools/winebuild/import.c @@ -147,10 +147,11 @@ inline static ORDDEF *find_export( const char *name, ORDDEF **table, int size ) { 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; }