From 1e225a215b134ac603553d5bb1b6cf87b1c629f8 Mon Sep 17 00:00:00 2001 From: naddy Date: Sun, 31 Jan 2021 14:18:44 +0000 Subject: [PATCH] fix mistaken operator precedence in a pointer dereference in disklabel ok millert@ --- sbin/disklabel/editor.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sbin/disklabel/editor.c b/sbin/disklabel/editor.c index 101a5eed8a3..feab5969e5d 100644 --- a/sbin/disklabel/editor.c +++ b/sbin/disklabel/editor.c @@ -1,4 +1,4 @@ -/* $OpenBSD: editor.c,v 1.363 2019/11/19 06:20:37 otto Exp $ */ +/* $OpenBSD: editor.c,v 1.364 2021/01/31 14:18:44 naddy Exp $ */ /* * Copyright (c) 1997-2000 Todd C. Miller @@ -2377,7 +2377,7 @@ get_token(char **s, size_t *len) size_t tlen = 0; p = *s; - while (*len > 0 && !isspace((u_char)*s[0])) { + while (*len > 0 && !isspace((u_char)**s)) { (*s)++; (*len)--; tlen++; @@ -2386,7 +2386,7 @@ get_token(char **s, size_t *len) return (NULL); /* eat whitespace */ - while (*len > 0 && isspace((u_char)*s[0])) { + while (*len > 0 && isspace((u_char)**s)) { (*s)++; (*len)--; } -- 2.20.1