X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/a82c22998b76c7109366e8aea5e1fc90154ce749..80f3f3beb68c3aabfdf521e78b383c41399ac75e:/src/unix/stackwalk.cpp?ds=sidebyside diff --git a/src/unix/stackwalk.cpp b/src/unix/stackwalk.cpp index 2e6a5ccda4..62669bcf2d 100644 --- a/src/unix/stackwalk.cpp +++ b/src/unix/stackwalk.cpp @@ -222,7 +222,7 @@ int wxStackWalker::InitFrames(wxStackFrame *arr, size_t n, void **addresses, cha // build the (long) command line for executing addr2line in an optimized way // (e.g. use always chars, even in Unicode build: popen() always takes chars) - int len = snprintf(g_buf, BUFSIZE, "addr2line -C -f -e \"%s\"", exepath.mb_str()); + int len = snprintf(g_buf, BUFSIZE, "addr2line -C -f -e \"%s\"", (const char*) exepath.mb_str()); len = (len <= 0) ? strlen(g_buf) : len; // in case snprintf() is broken for (size_t i=0; i