From 866f718f2d90f7b2b0cbbe75def846180cafbaa2 Mon Sep 17 00:00:00 2001 From: mmcc Date: Sat, 24 Oct 2015 17:29:03 +0000 Subject: [PATCH] Cast toupper()'s argument to unsigned char. ok guenther@ --- games/bs/bs.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/games/bs/bs.c b/games/bs/bs.c index 517571af7be..2df4d739eb9 100644 --- a/games/bs/bs.c +++ b/games/bs/bs.c @@ -1,4 +1,4 @@ -/* $OpenBSD: bs.c,v 1.28 2015/09/27 05:27:42 guenther Exp $ */ +/* $OpenBSD: bs.c,v 1.29 2015/10/24 17:29:03 mmcc Exp $ */ /* * Copyright (c) 1986, Bruce Holloway * All rights reserved. @@ -241,7 +241,7 @@ static void intro(void) if ((tmpname = getlogin()) != NULL) { (void)strlcpy(name, tmpname, sizeof(name)); - name[0] = toupper(name[0]); + name[0] = toupper((unsigned char)name[0]); } else (void)strlcpy(name, dftname, sizeof(name)); -- 2.20.1