Andrew Talbot : winhelp: Write-strings warning fix.
Module: wine Branch: refs/heads/master Commit: 8abef9ea50b174e355cef29243e61923d4fa993e URL: http://source.winehq.org/git/?p=wine.git;a=commit;h=8abef9ea50b174e355cef292... Author: Andrew Talbot <Andrew.Talbot(a)talbotville.com> Date: Wed Jul 26 20:30:30 2006 +0100 winhelp: Write-strings warning fix. --- programs/winhelp/winhelp.c | 5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) diff --git a/programs/winhelp/winhelp.c b/programs/winhelp/winhelp.c index fd4cdd1..bec8a62 100644 --- a/programs/winhelp/winhelp.c +++ b/programs/winhelp/winhelp.c @@ -164,11 +164,12 @@ int PASCAL WinMain(HINSTANCE hInstance, MSG msg; LONG lHash = 0; HLPFILE* hlpfile; - char* wndname = "main"; + static CHAR default_wndname[] = "main"; + LPSTR wndname = default_wndname; WINHELP_DLL* dll; Globals.hInstance = hInstance; - + /* Get options */ while (*cmdline && (*cmdline == ' ' || *cmdline == '-')) {
participants (1)
-
Alexandre Julliard