From d290b41a8d7ee5c545e71b7467d15e2629b3b8ef Mon Sep 17 00:00:00 2001 From: jsg Date: Tue, 11 Oct 2022 07:36:27 +0000 Subject: [PATCH] fix unintended sizeof pointer introduced in 1.10 ok cheloha@ miod@ matthieu@ martijn@ --- usr.bin/ts/ts.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/usr.bin/ts/ts.c b/usr.bin/ts/ts.c index 62987ca10e5..f8e3cb0353a 100644 --- a/usr.bin/ts/ts.c +++ b/usr.bin/ts/ts.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ts.c,v 1.10 2022/09/01 00:14:36 cheloha Exp $ */ +/* $OpenBSD: ts.c,v 1.11 2022/10/11 07:36:27 jsg Exp $ */ /* * Copyright (c) 2022 Job Snijders * Copyright (c) 2022 Claudio Jeker @@ -167,7 +167,7 @@ fmtfmt(void) f[0] = f[1]; f[1] = '.'; f += 2; - u = malloc(sizeof u); + u = malloc(sizeof *u); if (u == NULL) err(1, NULL); u->pos = f; -- 2.20.1