Module: wine Branch: master Commit: 80294709c51c04696c569700500b1b8217e52115 URL: http://source.winehq.org/git/wine.git/?a=commit;h=80294709c51c04696c56970050...
Author: Andrew Talbot Andrew.Talbot@talbotville.com Date: Wed Oct 11 15:11:04 2006 +0100
winebuild: Cast-qual warning fix.
---
tools/winebuild/import.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-)
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 @@ inline static ORDDEF *find_export( const { 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; }