aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/security.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/security.c b/src/security.c
index 45feb66..203990c 100644
--- a/src/security.c
+++ b/src/security.c
@@ -126,7 +126,7 @@ void chown_tty(uid_t owner, gid_t group, char with_fail)
*--vcs = *--vcsa = 0;
while (n)
{
- *--vcs = *--vcsa = (n % 10) + '0';
+ *--vcs = *--vcsa = (char)((n % 10) + '0');
n /= 10;
}