Stephen Smalley wrote: > Given that getline() returns the length read (not to be confused with > the buffer length), why not just: > while ((len = getline(&temp, &buff_len, shells)) > 0) { > if (temp[len-1] == '\n') temp[len-1] = 0; That is probably the simplest fix. - todd -- This message was distributed to subscribers of the selinux mailing list. If you no longer wish to subscribe, send mail to majordomo@xxxxxxxxxxxxx with the words "unsubscribe selinux" without quotes as the message.