diff options
author | Colin Harrison <colin.harrison@virgin.net> | 2010-10-19 23:42:53 +0100 |
---|---|---|
committer | Jon TURNEY <jon.turney@dronecode.org.uk> | 2012-10-16 22:25:08 +0100 |
commit | f7f0739311927ad177dece7119272481b75b73b4 (patch) | |
tree | b03cb11b549c8ad19fcb22b457371fcfdb3df2cc /hw/xwin | |
parent | 97c9ed026a7f7efe5fca02c188bcbdbcd7c594e9 (diff) |
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>
Diffstat (limited to 'hw/xwin')
-rw-r--r-- | hw/xwin/winwindowswm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/xwin/winwindowswm.c b/hw/xwin/winwindowswm.c index 88c375733..01ae088e8 100644 --- a/hw/xwin/winwindowswm.c +++ b/hw/xwin/winwindowswm.c @@ -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); |