From c773c1786718c76155074331c7da60e934786da3 Mon Sep 17 00:00:00 2001 From: "Dmitry V. Levin" Date: Tue, 3 Mar 2009 18:29:04 +0000 Subject: Relevant BUGIDs: Purpose of commit: bugfix Commit summary: --------------- 2009-03-03 Dmitry V. Levin * tests/tst-pam_mkargv.c (main): Fix for non-64bit architectures. --- tests/tst-pam_mkargv.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'tests') 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) -- cgit v1.2.3