summaryrefslogtreecommitdiff
path: root/lib/libc/gen/getusershell.c
diff options
context:
space:
mode:
authorAndrey A. Chernov <ache@FreeBSD.org>1999-11-04 04:16:28 +0000
committerAndrey A. Chernov <ache@FreeBSD.org>1999-11-04 04:16:28 +0000
commit49435560cc988ecad06b5a161ae1abaa8670ec50 (patch)
tree06f60b8ad3061c4485404825978a40680015e710 /lib/libc/gen/getusershell.c
parentc12c023aa47771ccd1a0336c87af7a1249e03d58 (diff)
Notes
Diffstat (limited to 'lib/libc/gen/getusershell.c')
-rw-r--r--lib/libc/gen/getusershell.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/libc/gen/getusershell.c b/lib/libc/gen/getusershell.c
index 408f9f3664d1..be1a77ab84ad 100644
--- a/lib/libc/gen/getusershell.c
+++ b/lib/libc/gen/getusershell.c
@@ -29,6 +29,8 @@
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
+ *
+ * $FreeBSD$
*/
#if defined(LIBC_SCCS) && !defined(lint)
@@ -127,7 +129,7 @@ initshells()
if (*cp == '#' || *cp == '\0')
continue;
*sp++ = cp;
- while (!isspace(*cp) && *cp != '#' && *cp != '\0')
+ while (!isspace((unsigned char)*cp) && *cp != '#' && *cp != '\0')
cp++;
*cp++ = '\0';
}