logentry.cmd = strdup((char *)basename(cmd));
logentry.cmd = strdup(basename(cmd));
int logString(char *cmd, char *string) {    struct logInfo logentry;        if (cmd) {	logentry.cmd = strdup((char *)basename(cmd));	if ((logentry.cmd[0] =='K' || logentry.cmd[0] == 'S') && ( 30 <= logentry.cmd[1] <= 39 )	    && ( 30 <= logentry.cmd[2] <= 39 ) )	  logentry.cmd+=3;    } else      logentry.cmd = strdup(_(""));    logentry.line = strdup(string);    logentry.pri = logpriority;    logentry.fac = logfacility;        return logLine(&logentry);}