X-Git-Url: https://git.saurik.com/apple/system_cmds.git/blobdiff_plain/2fc1e207eccd68aee093ed29dae719e77bac17dd..b58caf92d598c70ddd398b3909b0a2b8b5a110e1:/at.tproj/perm.c diff --git a/at.tproj/perm.c b/at.tproj/perm.c index 872ce44..82bab87 100644 --- a/at.tproj/perm.c +++ b/at.tproj/perm.c @@ -1,4 +1,4 @@ -/* +/* * perm.c - check user permission for at(1) * Copyright (C) 1994 Thomas Koenig * @@ -41,6 +41,7 @@ __FBSDID("$FreeBSD: src/usr.bin/at/perm.c,v 1.13 2001/12/10 21:13:01 dwmalone Ex /* Local headers */ #include "at.h" +#include "panic.h" #include "perm.h" #include "privs.h" @@ -59,10 +60,10 @@ static int check_for_user(FILE *fp,const char *name); static int check_for_user(FILE *fp,const char *name) { char *buffer; - size_t len; + int len; int found = 0; - len = strlen(name); + len = (int)strlen(name); if ((buffer = malloc(len+2)) == NULL) errx(EXIT_FAILURE, "virtual memory exhausted");