-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Todd Miller wrote: > 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 Fine with me, Do you want another patch. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (GNU/Linux) Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org iD8DBQFHVGJJrlYvE4MpobMRApYvAJ9IVdhR+SwUqZVdaTSayldB0LwQoACgyK4y JovC/Zp6veX/jbP2m+qPbv0= =5Azc -----END PGP SIGNATURE----- -- 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.