summaryrefslogtreecommitdiff
path: root/src/gram.y
diff options
context:
space:
mode:
Diffstat (limited to 'src/gram.y')
-rw-r--r--src/gram.y2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gram.y b/src/gram.y
index ef0152a..5f85327 100644
--- a/src/gram.y
+++ b/src/gram.y
@@ -652,7 +652,7 @@ button : BUTTON number { $$ = $2;
}
;
-string : STRING { ptr = (char *)malloc(strlen($1)+1);
+string : STRING { ptr = malloc(strlen($1)+1);
strcpy(ptr, $1);
RemoveDQuote(ptr);
$$ = ptr;