diff options
author | gallatin <gallatin@FreeBSD.org> | 2000-10-26 17:40:14 +0000 |
---|---|---|
committer | gallatin <gallatin@FreeBSD.org> | 2000-10-26 17:40:14 +0000 |
commit | f6e34ced20bcadcc31a07cd0b9552947ff58e39b (patch) | |
tree | 9415f3b5c39e5ef7f24a0d86f8ffd13821cb859a /usr.sbin/edquota | |
parent | 7fc6c09ef4d722c2106b0d8ff6854c46fe7e17aa (diff) | |
download | FreeBSD-src-f6e34ced20bcadcc31a07cd0b9552947ff58e39b.zip FreeBSD-src-f6e34ced20bcadcc31a07cd0b9552947ff58e39b.tar.gz |
fix unaligned access errors caused by bad scanf/printf format strings
PR: alpha/21247
tested by: Marcin Gryszkalis <dagoon@rs.math.uni.lodz.pl>
Diffstat (limited to 'usr.sbin/edquota')
-rw-r--r-- | usr.sbin/edquota/edquota.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/usr.sbin/edquota/edquota.c b/usr.sbin/edquota/edquota.c index ef3b2ed..c376310 100644 --- a/usr.sbin/edquota/edquota.c +++ b/usr.sbin/edquota/edquota.c @@ -414,12 +414,12 @@ writeprivs(quplist, outfd, name, quotatype) err(1, "%s", tmpfil); fprintf(fd, "Quotas for %s %s:\n", qfextension[quotatype], name); for (qup = quplist; qup; qup = qup->next) { - fprintf(fd, "%s: %s %lu, limits (soft = %lu, hard = %lu)\n", + fprintf(fd, "%s: %s %u, limits (soft = %u, hard = %u)\n", qup->fsname, "blocks in use:", (unsigned long)(dbtob(qup->dqblk.dqb_curblocks) / 1024), (unsigned long)(dbtob(qup->dqblk.dqb_bsoftlimit) / 1024), (unsigned long)(dbtob(qup->dqblk.dqb_bhardlimit) / 1024)); - fprintf(fd, "%s %lu, limits (soft = %lu, hard = %lu)\n", + fprintf(fd, "%s %u, limits (soft = %u, hard = %u)\n", "\tinodes in use:", qup->dqblk.dqb_curinodes, qup->dqblk.dqb_isoftlimit, qup->dqblk.dqb_ihardlimit); } @@ -462,7 +462,7 @@ readprivs(quplist, inname) return (0); } cnt = sscanf(cp, - " blocks in use: %lu, limits (soft = %lu, hard = %lu)", + " blocks in use: %u, limits (soft = %u, hard = %u)", &dqblk.dqb_curblocks, &dqblk.dqb_bsoftlimit, &dqblk.dqb_bhardlimit); if (cnt != 3) { @@ -479,7 +479,7 @@ readprivs(quplist, inname) return (0); } cnt = sscanf(cp, - "\tinodes in use: %lu, limits (soft = %lu, hard = %lu)", + "\tinodes in use: %u, limits (soft = %u, hard = %u)", &dqblk.dqb_curinodes, &dqblk.dqb_isoftlimit, &dqblk.dqb_ihardlimit); if (cnt != 3) { |