diff --git a/src/msg.cpp b/src/msg.cpp index ac673aee..6299e449 100644 --- a/src/msg.cpp +++ b/src/msg.cpp @@ -110,7 +110,7 @@ void printErr(const char *iname, const Throwable *e) { char buf[1024]; - upx_snprintf(buf, sizeof(buf), "%s", prettyName(typeid(e).name())); + upx_snprintf(buf, sizeof(buf), "%s", prettyName(typeid(*e).name())); if (e->getMsg()) upx_snprintf(buf+strlen(buf),sizeof(buf)-strlen(buf),": %s", e->getMsg()); if (e->getErrno())