X-Git-Url: http://www.average.org/gitweb/?p=pam_pcsc_cr.git;a=blobdiff_plain;f=authfile.c;h=923cb8824fb31db39089e451edb95120de02d780;hp=2d30ed83b1ed708736e3d4a4f66a350e35aee8dd;hb=da2a84904dd17e4ed70a6497c0d18f69d004d453;hpb=8624b16ffe42216463da9cf4301bb909a19a0b42;ds=sidebyside diff --git a/authfile.c b/authfile.c index 2d30ed8..923cb88 100644 --- 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