git.samba.org
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
beee1b2
)
use the new issafe() macro instead of isalnum() and strchr()
author
Andrew Tridgell
<tridge@samba.org>
Sat, 4 May 1996 10:43:29 +0000
(10:43 +0000)
committer
Andrew Tridgell
<tridge@samba.org>
Sat, 4 May 1996 10:43:29 +0000
(10:43 +0000)
(This used to be commit
79c65e66f8034d21b6c90fcdbd76601657f3c447
)
source3/smbd/ipc.c
patch
|
blob
|
history
diff --git
a/source3/smbd/ipc.c
b/source3/smbd/ipc.c
index 8852e57e8b6d251404212572264feefe45bb3966..34210f2db700016824d3185a2c42c1c11c0a078e 100644
(file)
--- 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;