diff options
author | N.N. <matju@users.sourceforge.net> | 2009-04-26 17:59:27 +0000 |
---|---|---|
committer | N.N. <matju@users.sourceforge.net> | 2009-04-26 17:59:27 +0000 |
commit | f40ef3d2f41dee95f7e7d2323ab4605ed5937fb8 (patch) | |
tree | 508e9c9fdfbba63c769a293935b749b45710390e /desiredata | |
parent | be3029a8715401e6bc9bae96376a079bd1b93a6e (diff) |
for win32 (from Patrice Colet)
svn path=/trunk/; revision=11158
Diffstat (limited to 'desiredata')
-rw-r--r-- | desiredata/src/s_main.c | 2 |
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); |