summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorDmitry V. Levin <ldv@altlinux.org>2009-03-03 18:29:04 +0000
committerDmitry V. Levin <ldv@altlinux.org>2009-03-03 18:29:04 +0000
commitc773c1786718c76155074331c7da60e934786da3 (patch)
treee0019a9e86729e29cd09edb73c5260ed62e28834 /tests
parent5814c9064606215dca37b138a12822d66ca2b312 (diff)
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')
-rw-r--r--tests/tst-pam_mkargv.c4
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)