diff options
| author | Simon Robertshaw <simon@hardwired.org.uk> | 2012-01-20 22:10:42 (GMT) |
|---|---|---|
| committer | Simon Robertshaw <simon@hardwired.org.uk> | 2012-01-20 22:10:42 (GMT) |
| commit | 4949a5eac05339a4a82280588c97e948f134dfcb (patch) | |
| tree | 3678fd10dda234d5888bae73f56169b23564649c /src/Misc.cpp | |
| parent | c8073657fcbfd1bfa72538d7babe4964857e7101 (diff) | |
| download | powder-4949a5eac05339a4a82280588c97e948f134dfcb.zip powder-4949a5eac05339a4a82280588c97e948f134dfcb.tar.gz | |
Fix case for header files
Diffstat (limited to 'src/Misc.cpp')
| -rw-r--r-- | src/Misc.cpp | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/src/Misc.cpp b/src/Misc.cpp index 44770d1..a6ac711 100644 --- a/src/Misc.cpp +++ b/src/Misc.cpp @@ -4,13 +4,9 @@ #include <regex.h> #include <sys/types.h> #include <math.h> -#include "misc.h" #include "Config.h" -//#include "interface.h" -//#include "graphics.h" -//#include "powder.h" -//#include <icondoc.h> -//#include <update.h> +#include "Misc.h" +#include "icondoc.h" #if defined WIN32 #include <shlobj.h> #include <shlwapi.h> @@ -47,7 +43,7 @@ char *exe_name(void) } res = 1; #else - char fn[64], *name=malloc(64); + char fn[64], *name=(char *)malloc(64); size_t max=64, res; sprintf(fn, "/proc/self/exe"); memset(name, 0, max); @@ -544,7 +540,7 @@ int register_extension() "Comment=Physics sandbox game\n" "MimeType=application/vnd.powdertoy.save;\n" "NoDisplay=true\n"; - char *desktopfiledata = malloc(strlen(desktopfiledata_tmp)+strlen(currentfilename)+100); + char *desktopfiledata = (char *)malloc(strlen(desktopfiledata_tmp)+strlen(currentfilename)+100); strcpy(desktopfiledata, desktopfiledata_tmp); strappend(desktopfiledata, "Exec="); strappend(desktopfiledata, currentfilename); |
