- Now using strdup(str) i.o. malloc(strlen(str)+1).
Made reporting more general by making syslog appname settable.