projects
/
pam_pcsc_cr.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
fix precedence error
[pam_pcsc_cr.git]
/
authfile.c
diff --git
a/authfile.c
b/authfile.c
index 2d30ed83b1ed708736e3d4a4f66a350e35aee8dd..923cb8824fb31db39089e451edb95120de02d780 100644
(file)
--- a/
authfile.c
+++ b/
authfile.c
@@
-74,7
+74,7
@@
static int path_size(const char *tokenid, const char *userid)
} else {
usub = userid;
}
- return strlen(template)
+ p?strlen(usub):0 + q?strlen(tokenid):0 +
1;
+ return strlen(template)
+(p?strlen(usub):0)+(q?strlen(tokenid):0)+
1;
}
static void