aboutsummaryrefslogtreecommitdiffhomepage
path: root/gui/win32/widgetrender.c
diff options
context:
space:
mode:
Diffstat (limited to 'gui/win32/widgetrender.c')
-rw-r--r--gui/win32/widgetrender.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gui/win32/widgetrender.c b/gui/win32/widgetrender.c
index 0ac2e730ea..4dcd105b8b 100644
--- a/gui/win32/widgetrender.c
+++ b/gui/win32/widgetrender.c
@@ -185,7 +185,7 @@ static char *generatetextfromlabel(widget *item)
/* cuts text to buflen scrolling from right to left */
static void scrolltext(char *text, unsigned int buflen, float *value)
{
- char *buffer = (char *) malloc(buflen + 1);
+ char *buffer = malloc(buflen + 1);
unsigned int x,i;
if(*value < buflen) x = 0;
else x = *value - buflen;