aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--desiredata/src/s_main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/desiredata/src/s_main.c b/desiredata/src/s_main.c
index ddcee715..7c9c27cb 100644
--- a/desiredata/src/s_main.c
+++ b/desiredata/src/s_main.c
@@ -312,7 +312,7 @@ void sys_findprogdir(char *progname) {
char *sbuf;
#ifdef MSW
int len = GetModuleFileName(NULL, sbuf, 0);
- sbuf = malloc(len+1);
+ sbuf = (char *)malloc(len+1);
GetModuleFileName(NULL, sbuf, len);
sbuf[len] = 0;
sys_unbashfilename(sbuf,sbuf);