Merge pull request #735 from RobLoach/patch-1
Fix clang++ compilation errors
This commit is contained in:
commit
30c025f913
1 changed files with 19 additions and 19 deletions
|
@ -1642,7 +1642,7 @@ const char *GetFileNameWithoutExt(const char *filePath)
|
||||||
|
|
||||||
// Try to allocate new string, same size as original
|
// Try to allocate new string, same size as original
|
||||||
// NOTE: By default strlen() does not count the '\0' character
|
// NOTE: By default strlen() does not count the '\0' character
|
||||||
if ((result = malloc(strlen(filePath) + 1)) == NULL) return NULL;
|
if ((result = (char *)malloc(strlen(filePath) + 1)) == NULL) return NULL;
|
||||||
|
|
||||||
strcpy(result, filePath); // Make a copy of the string
|
strcpy(result, filePath); // Make a copy of the string
|
||||||
|
|
||||||
|
@ -1885,7 +1885,7 @@ void OpenURL(const char *url)
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
char *cmd = calloc(strlen(url) + 10, sizeof(char));
|
char *cmd = (char *)calloc(strlen(url) + 10, sizeof(char));
|
||||||
|
|
||||||
#if defined(_WIN32)
|
#if defined(_WIN32)
|
||||||
sprintf(cmd, "explorer '%s'", url);
|
sprintf(cmd, "explorer '%s'", url);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue