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:
Dmitry V. Levin 2009-03-03 18:29:04 +00:00
parent 5814c90646
commit c773c17867
2 changed files with 7 additions and 1 deletions

View File

@ -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

View File

@ -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)