aboutsummaryrefslogtreecommitdiff
path: root/apps/opt.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/opt.c')
-rw-r--r--apps/opt.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/opt.c b/apps/opt.c
index fbe4c4b..3e2831c 100644
--- a/apps/opt.c
+++ b/apps/opt.c
@@ -795,7 +795,7 @@ void opt_help(const OPTIONS *list)
}
/* Pad out prefix */
- memset(start, ' ', sizeof start - 1);
+ memset(start, ' ', sizeof(start) - 1);
start[sizeof start - 1] = '\0';
if (o->name == OPT_MORE_STR) {
@@ -821,7 +821,7 @@ void opt_help(const OPTIONS *list)
if ((int)(p - start) >= MAX_OPT_HELP_WIDTH) {
*p = '\0';
BIO_printf(bio_err, "%s\n", start);
- memset(start, ' ', sizeof start);
+ memset(start, ' ', sizeof(start));
}
start[width] = '\0';
BIO_printf(bio_err, "%s %s\n", start, help);