summaryrefslogtreecommitdiffstats
path: root/lib/libfetch/file.c
diff options
context:
space:
mode:
authordes <des@FreeBSD.org>2003-01-28 08:04:40 +0000
committerdes <des@FreeBSD.org>2003-01-28 08:04:40 +0000
commit7a494517a4096a46a570ba094cbd24a7301b549c (patch)
tree3c45c995c4be16b325a0ec0ed6294d455330232a /lib/libfetch/file.c
parent460afc73404cad5304f935c63417e1d5a7dd7f8f (diff)
downloadFreeBSD-src-7a494517a4096a46a570ba094cbd24a7301b549c.zip
FreeBSD-src-7a494517a4096a46a570ba094cbd24a7301b549c.tar.gz
style(9): add parentheses to sizeof even when not strictly required.
MFC after: 3 days
Diffstat (limited to 'lib/libfetch/file.c')
-rw-r--r--lib/libfetch/file.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/libfetch/file.c b/lib/libfetch/file.c
index 085f232..d73159a 100644
--- a/lib/libfetch/file.c
+++ b/lib/libfetch/file.c
@@ -127,11 +127,11 @@ fetchListFile(struct url *u, const char *flags __unused)
}
ue = NULL;
- strncpy(fn, u->doc, sizeof fn - 2);
- fn[sizeof fn - 2] = 0;
+ strncpy(fn, u->doc, sizeof(fn) - 2);
+ fn[sizeof(fn) - 2] = 0;
strcat(fn, "/");
p = strchr(fn, 0);
- l = sizeof fn - strlen(fn) - 1;
+ l = sizeof(fn) - strlen(fn) - 1;
while ((de = readdir(dir)) != NULL) {
strncpy(p, de->d_name, l - 1);
OpenPOWER on IntegriCloud