From f40ef3d2f41dee95f7e7d2323ab4605ed5937fb8 Mon Sep 17 00:00:00 2001 From: "N.N." Date: Sun, 26 Apr 2009 17:59:27 +0000 Subject: for win32 (from Patrice Colet) svn path=/trunk/; revision=11158 --- desiredata/src/s_main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- cgit v1.2.1