From f4da80098a90f8329d797ca807f773406c70c120 Mon Sep 17 00:00:00 2001 From: tedu Date: Sun, 10 Jul 2016 03:24:31 +0000 Subject: [PATCH] rename variable for consistency --- usr.bin/doas/env.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/usr.bin/doas/env.c b/usr.bin/doas/env.c index 3938e5c77c6..b003aa9772f 100644 --- a/usr.bin/doas/env.c +++ b/usr.bin/doas/env.c @@ -1,4 +1,4 @@ -/* $OpenBSD: env.c,v 1.3 2016/06/27 15:41:17 tedu Exp $ */ +/* $OpenBSD: env.c,v 1.4 2016/07/10 03:24:31 tedu Exp $ */ /* * Copyright (c) 2016 Ted Unangst * @@ -87,7 +87,7 @@ createenv(struct rule *rule) struct envnode *node; const char *e, *eq; size_t len; - char keybuf[1024]; + char name[1024]; e = environ[i]; @@ -95,12 +95,12 @@ createenv(struct rule *rule) if ((eq = strchr(e, '=')) == NULL || eq == e) continue; len = eq - e; - if (len > sizeof(keybuf) - 1) + if (len > sizeof(name) - 1) continue; - memcpy(keybuf, e, len); - keybuf[len] = '\0'; + memcpy(name, e, len); + name[len] = '\0'; - node = createnode(keybuf, eq + 1); + node = createnode(name, eq + 1); if (RB_INSERT(envtree, &env->root, node)) { /* ignore any later duplicates */ freenode(node); -- 2.20.1