summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>1996-05-04 10:43:29 +0000
committerAndrew Tridgell <tridge@samba.org>1996-05-04 10:43:29 +0000
commit79c65e66f8034d21b6c90fcdbd76601657f3c447 (patch)
tree514af95ec5e7c837f3ccb055f094599d422ba0dc
parent21c7f21fd59b592023c16734731f61cff6f04aee (diff)
downloadsamba-79c65e66f8034d21b6c90fcdbd76601657f3c447.tar.gz
samba-79c65e66f8034d21b6c90fcdbd76601657f3c447.tar.xz
samba-79c65e66f8034d21b6c90fcdbd76601657f3c447.zip
use the new issafe() macro instead of isalnum() and strchr()
-rw-r--r--source/smbd/ipc.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/source/smbd/ipc.c b/source/smbd/ipc.c
index 8852e57e8b6..34210f2db70 100644
--- a/source/smbd/ipc.c
+++ b/source/smbd/ipc.c
@@ -1551,8 +1551,7 @@ static BOOL api_PrintJobInfo(int cnum,int uid,char *param,char *data,
int l = 0;
while (l<64 && *s)
{
- if (isalnum(*s) || strchr("-._",*s))
- name[l++] = *s;
+ if (issafe(*s)) name[l++] = *s;
s++;
}
name[l] = 0;