summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/music/libtimidity.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/music/libtimidity.cpp b/src/music/libtimidity.cpp
index eedc75d60..c8e2a7734 100644
--- a/src/music/libtimidity.cpp
+++ b/src/music/libtimidity.cpp
@@ -52,7 +52,7 @@ const char *MusicDriver_LibTimidity::Start(const char * const *param)
_midi.status = MIDI_STOPPED;
_midi.song = NULL;
- if (mid_init(param == NULL ? NULL : (char *)param[0]) < 0) {
+ if (mid_init(param == NULL ? NULL : const_cast<char *>(param[0])) < 0) {
/* If init fails, it can be because no configuration was found.
* If it was not forced via param, try to load it without a
* configuration. Who knows that works. */