hw/xwin: Warning fix in ProcWindowsWMFrameSetTitle()
winwindowswm.c: In function ‘ProcWindowsWMFrameSetTitle’: winwindowswm.c:514: error: pointer targets in passing argument 2 of ‘strncpy’ differ in signedness If you're going to stick random casts into your code, at least use the goddammed right ones. :-) Signed-off-by: Colin Harrison <colin.harrison@virgin.net> Reviewed-by: Jon TURNEY <jon.turney@dronecode.org.uk>
This commit is contained in:
parent
97c9ed026a
commit
f7f0739311
|
@ -491,7 +491,7 @@ ProcWindowsWMFrameSetTitle(ClientPtr client)
|
|||
#endif
|
||||
|
||||
title_bytes = malloc(title_length + 1);
|
||||
strncpy(title_bytes, (unsigned char *) &stuff[1], title_length);
|
||||
strncpy(title_bytes, (char *) &stuff[1], title_length);
|
||||
title_bytes[title_length] = '\0';
|
||||
|
||||
pRLWinPriv = (win32RootlessWindowPtr) RootlessFrameForWindow(pWin, FALSE);
|
||||
|
|
Loading…
Reference in New Issue
Block a user