From: jsg Date: Tue, 11 Oct 2022 07:36:27 +0000 (+0000) Subject: fix unintended sizeof pointer introduced in 1.10 X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=d290b41a8d7ee5c545e71b7467d15e2629b3b8ef;p=openbsd fix unintended sizeof pointer introduced in 1.10 ok cheloha@ miod@ matthieu@ martijn@ --- 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;