19 lines
641 B
Diff
19 lines
641 B
Diff
2008-11-25 Thorsten Kukuk <kukuk@thkukuk.de>
|
|
|
|
* modules/pam_time/pam_time.c (is_same): Fix check
|
|
of correct string length (debian bug #326407).
|
|
|
|
--- modules/pam_time/pam_time.c 7 Dec 2007 15:40:02 -0000 1.16
|
|
+++ modules/pam_time/pam_time.c 25 Nov 2008 13:37:12 -0000
|
|
@@ -358,8 +358,8 @@
|
|
|
|
/* Ok, we know that b is a substring from A and does not contain
|
|
wildcards, but now the length of both strings must be the same,
|
|
- too. */
|
|
- if (strlen (a) != strlen(b))
|
|
+ too. In this case it means, a[i] has to be the end of the string. */
|
|
+ if (a[i] != '\0')
|
|
return FALSE;
|
|
|
|
return ( !len );
|