From c8227639db90c3147ef68f33c98e96b0ab6b01d6 Mon Sep 17 00:00:00 2001 From: Matt Kraai Date: Mon, 12 Nov 2001 16:57:27 +0000 Subject: Change strdup calls to xstrdup (patch from Steve Merrifield). --- modutils/insmod.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'modutils') diff --git a/modutils/insmod.c b/modutils/insmod.c index c21f22b74..8668aaa0f 100644 --- a/modutils/insmod.c +++ b/modutils/insmod.c @@ -133,7 +133,7 @@ #ifndef MODUTILS_MODULE_H static const int MODUTILS_MODULE_H = 1; -#ident "$Id: insmod.c,v 1.74 2001/10/24 04:59:54 andersen Exp $" +#ident "$Id: insmod.c,v 1.75 2001/11/12 16:57:26 kraai Exp $" /* This file contains the structures used by the 2.0 and 2.1 kernels. We do not use the kernel headers directly because we do not wish @@ -350,7 +350,7 @@ int delete_module(const char *); #ifndef MODUTILS_OBJ_H static const int MODUTILS_OBJ_H = 1; -#ident "$Id: insmod.c,v 1.74 2001/10/24 04:59:54 andersen Exp $" +#ident "$Id: insmod.c,v 1.75 2001/11/12 16:57:26 kraai Exp $" /* The relocatable object is manipulated using elfin types. */ @@ -724,7 +724,7 @@ static int check_module_name_match(const char *filename, struct stat *statbuf, if (fullname[0] == '\0') return (FALSE); else { - char *tmp, *tmp1 = strdup(filename); + char *tmp, *tmp1 = xstrdup(filename); tmp = get_last_path_component(tmp1); if (strcmp(tmp, fullname) == 0) { free(tmp1); -- cgit v1.2.3