diff options
Diffstat (limited to 'x11-wm/wmg/files/patch-aa')
-rw-r--r-- | x11-wm/wmg/files/patch-aa | 34 |
1 files changed, 26 insertions, 8 deletions
diff --git a/x11-wm/wmg/files/patch-aa b/x11-wm/wmg/files/patch-aa index 4f3cdab5e12d..cd359eaaefae 100644 --- a/x11-wm/wmg/files/patch-aa +++ b/x11-wm/wmg/files/patch-aa @@ -1,11 +1,29 @@ ---- src/Client.C.orig Sat Feb 5 18:11:15 2000 -+++ src/Client.C Sat Feb 5 18:11:31 2000 -@@ -339,7 +339,7 @@ - p = (unsigned char *)malloc( +--- src/Client.C.orig Tue Nov 23 01:59:43 1999 ++++ src/Client.C Tue Nov 23 02:01:29 1999 +@@ -320,7 +320,7 @@ + + + char *Client::getProperty(Atom a) { +- unsigned char *p; ++ char *p; + + if (a == XA_WM_NAME || XA_WM_ICON_NAME) { + XTextProperty xtp; +@@ -335,7 +335,7 @@ + if (st != 0) { + XmbTextPropertyToTextList(display(), &xtp, &cl, &n); + if(cl){ +- p = (unsigned char *)malloc( ++ p = (char *)malloc( sizeof (unsigned char) * (strlen(cl[0]) + 1) ); -- strcpy(p, cl[0]); -+ strcpy((char *)p, cl[0]); - XFreeStringList(cl); - } + strcpy(p, cl[0]); +@@ -344,7 +344,7 @@ } + } + else{ +- if(getProperty_aux(display(), m_window, a, XA_STRING, 100L, &p) <= 0) { ++ if(getProperty_aux(display(), m_window, a, XA_STRING, 100L, &(unsigned char *)p) <= 0) { + return NULL; + } + } |