and openlog doesn't copy the input string, at least not on every system. That's just great. So copy the ident to a local static string before calling openlog.