mirror of
https://github.com/linux-pam/linux-pam.git
synced 2024-11-30 21:23:57 +08:00
Relevant BUGIDs:
Purpose of commit: bugfix Commit summary: --------------- 2009-03-03 Dmitry V. Levin <ldv@altlinux.org> * tests/tst-pam_mkargv.c (main): Fix for non-64bit architectures.
This commit is contained in:
parent
5814c90646
commit
c773c17867
@ -1,3 +1,7 @@
|
||||
2009-03-03 Dmitry V. Levin <ldv@altlinux.org>
|
||||
|
||||
* tests/tst-pam_mkargv.c (main): Fix for non-64bit architectures.
|
||||
|
||||
2009-03-03 Tomas Mraz <t8m@centrum.cz>
|
||||
|
||||
* modules/pam_unix/pam_unix_acct.c(_unix_run_verify_binary): Test
|
||||
|
@ -24,8 +24,10 @@ int main(void)
|
||||
int myargc;
|
||||
char **myargv;
|
||||
int argvlen;
|
||||
int explen;
|
||||
int i;
|
||||
|
||||
explen = (strlen(argvstring) + 1) * ((sizeof(char)) + sizeof(char *));
|
||||
argvlen = _pam_mkargv(argvstring, &myargv, &myargc);
|
||||
|
||||
#if 0
|
||||
@ -36,7 +38,7 @@ int main(void)
|
||||
printf ("\n");
|
||||
#endif
|
||||
|
||||
if (argvlen != 333)
|
||||
if (argvlen != explen)
|
||||
return 1;
|
||||
|
||||
if (myargc != 4)
|
||||
|
Loading…
Reference in New Issue
Block a user