From 78cf4aee6b346217e9f9fbee836c6c67a8cbda61 Mon Sep 17 00:00:00 2001 From: jkh Date: Mon, 9 Dec 1996 08:22:19 +0000 Subject: As Paul has just pointed out, much of my strncpy() usage was either bogus or overly complex and really needed to be done more consistently and sanely throughout - no question about it. Done. Suggested-By: Paul Traina --- usr.sbin/sysinstall/dmenu.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'usr.sbin/sysinstall/dmenu.c') diff --git a/usr.sbin/sysinstall/dmenu.c b/usr.sbin/sysinstall/dmenu.c index 410bd0b..9470f04 100644 --- a/usr.sbin/sysinstall/dmenu.c +++ b/usr.sbin/sysinstall/dmenu.c @@ -4,7 +4,7 @@ * This is probably the last attempt in the `sysinstall' line, the next * generation being slated for what's essentially a complete rewrite. * - * $Id: dmenu.c,v 1.26 1996/11/07 08:03:21 jkh Exp $ + * $Id: dmenu.c,v 1.27 1996/11/09 16:46:56 joerg Exp $ * * Copyright (c) 1995 * Jordan Hubbard. All rights reserved. @@ -182,7 +182,7 @@ dmenuVarCheck(dialogMenuItem *item) w = (char *)item->data; if (!w) return FALSE; - strncpy(tmp, w, 256); + SAFE_STRCPY(tmp, w); if ((cp = index(tmp, '=')) != NULL) { *(cp++) = '\0'; if ((cp3 = index(cp, ',')) != NULL) -- cgit v1.1