replace sprintf all over the place
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@1635 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -46,13 +46,14 @@ RCSID("$Id$");
|
||||
#include <otp.h>
|
||||
|
||||
static int
|
||||
test_one(OtpKey key1, char *name, char *val, void (*print)(OtpKey,char*),
|
||||
test_one(OtpKey key1, char *name, char *val,
|
||||
void (*print)(OtpKey,char*, size_t),
|
||||
OtpAlgorithm *alg)
|
||||
{
|
||||
char buf[256];
|
||||
OtpKey key2;
|
||||
|
||||
(*print)(key1, buf);
|
||||
(*print)(key1, buf, sizeof(buf));
|
||||
printf ("%s: %s, ", name, buf);
|
||||
if (strcmp (buf, val) != 0) {
|
||||
printf ("failed(*%s* != *%s*)\n", buf, val);
|
||||
|
Reference in New Issue
Block a user