diff options
author | Dmitry V. Levin <ldv@altlinux.org> | 2009-03-03 18:29:04 +0000 |
---|---|---|
committer | Dmitry V. Levin <ldv@altlinux.org> | 2009-03-03 18:29:04 +0000 |
commit | c773c1786718c76155074331c7da60e934786da3 (patch) | |
tree | e0019a9e86729e29cd09edb73c5260ed62e28834 /tests/tst-pam_mkargv.c | |
parent | 5814c9064606215dca37b138a12822d66ca2b312 (diff) | |
download | pam-c773c1786718c76155074331c7da60e934786da3.tar.gz pam-c773c1786718c76155074331c7da60e934786da3.tar.bz2 pam-c773c1786718c76155074331c7da60e934786da3.zip |
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.
Diffstat (limited to 'tests/tst-pam_mkargv.c')
-rw-r--r-- | tests/tst-pam_mkargv.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/tst-pam_mkargv.c b/tests/tst-pam_mkargv.c index 462875b8..d3e7a616 100644 --- a/tests/tst-pam_mkargv.c +++ b/tests/tst-pam_mkargv.c @@ -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) |