diff options
author | 2003-04-04 00:51:10 +0000 | |
---|---|---|
committer | 2003-04-04 00:51:10 +0000 | |
commit | 89eba4e3b3081698139c3dca33344816bdcc7661 (patch) | |
tree | 99e41c0b7e2f8eae3e56f9ebf6f525fdfd3cff25 | |
parent | change sectok_fmt_fid() to accept a size_t for the pathname length; (diff) | |
download | wireguard-openbsd-89eba4e3b3081698139c3dca33344816bdcc7661.tar.xz wireguard-openbsd-89eba4e3b3081698139c3dca33344816bdcc7661.zip |
adapt to new sectok_fmt_fid API
-rw-r--r-- | usr.bin/sectok/cyberflex.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/usr.bin/sectok/cyberflex.c b/usr.bin/sectok/cyberflex.c index 5522cdb79e6..3503ba65de2 100644 --- a/usr.bin/sectok/cyberflex.c +++ b/usr.bin/sectok/cyberflex.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cyberflex.c,v 1.23 2002/06/17 07:10:52 deraadt Exp $ */ +/* $OpenBSD: cyberflex.c,v 1.24 2003/04/04 00:51:10 deraadt Exp $ */ /* * copyright 1999, 2000 @@ -418,7 +418,7 @@ ls(int argc, char *argv[]) continue; /* Format name */ - sectok_fmt_fid(fname, &buf[4]); + sectok_fmt_fid(fname, sizeof fname, &buf[4]); /* Format size */ fsize = (buf[2] << 8) | buf[3]; @@ -679,8 +679,8 @@ jload(int argc, char *argv[]) if (!aut0_vfyd) jaut(0, NULL); - sectok_fmt_fid(progname, progID); - sectok_fmt_fid(contname, contID); + sectok_fmt_fid(progname, sizeof progname, progID); + sectok_fmt_fid(contname, sizeof contname, contID); if (vflag) { printf("applet file \"%s\"\n", filename); @@ -869,8 +869,8 @@ junload(int argc, char *argv[]) if (!aut0_vfyd) jaut(0, NULL); - sectok_fmt_fid(progname, progID); - sectok_fmt_fid(contname, contID); + sectok_fmt_fid(progname, sizeof progname, progID); + sectok_fmt_fid(contname, sizeof contname, contID); if (vflag) { printf("program ID %s\n", progname); |