summaryrefslogtreecommitdiff
path: root/source3/smbd
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
commit6bbd0d7b69ea9e27b1020833227aca196e14a75d (patch)
tree1b0446019be3f096545bb6cba9d718ea34e6d981 /source3/smbd
parentbeee1b280f3a0f2884b78d9afa7ad1506e43e997 (diff)
downloadsamba-6bbd0d7b69ea9e27b1020833227aca196e14a75d.tar.gz
samba-6bbd0d7b69ea9e27b1020833227aca196e14a75d.tar.bz2
samba-6bbd0d7b69ea9e27b1020833227aca196e14a75d.zip
use the new issafe() macro instead of isalnum() and strchr()
(This used to be commit 79c65e66f8034d21b6c90fcdbd76601657f3c447)
Diffstat (limited to 'source3/smbd')
-rw-r--r--source3/smbd/ipc.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/source3/smbd/ipc.c b/source3/smbd/ipc.c
index 8852e57e8b..34210f2db7 100644
--- a/source3/smbd/ipc.c
+++ b/source3/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;