aboutsummaryrefslogtreecommitdiff
path: root/modutils
diff options
context:
space:
mode:
authorkraai <kraai@69ca8d6d-28ef-0310-b511-8ec308f3f277>2001-11-12 16:57:27 +0000
committerkraai <kraai@69ca8d6d-28ef-0310-b511-8ec308f3f277>2001-11-12 16:57:27 +0000
commitbc8366289da20a7fa72dffac54a1074cb38c8055 (patch)
treeb704ef3f684a41c7705b5e36dac2127d23d129c4 /modutils
parent3cd86ce4657c0c9040798855e4359199609ee9c1 (diff)
downloadbusybox-w32-bc8366289da20a7fa72dffac54a1074cb38c8055.tar.gz
busybox-w32-bc8366289da20a7fa72dffac54a1074cb38c8055.tar.bz2
busybox-w32-bc8366289da20a7fa72dffac54a1074cb38c8055.zip
Change strdup calls to xstrdup (patch from Steve Merrifield).
git-svn-id: svn://busybox.net/trunk/busybox@3666 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'modutils')
-rw-r--r--modutils/insmod.c6
1 files changed, 3 insertions, 3 deletions
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 @@
133#ifndef MODUTILS_MODULE_H 133#ifndef MODUTILS_MODULE_H
134static const int MODUTILS_MODULE_H = 1; 134static const int MODUTILS_MODULE_H = 1;
135 135
136#ident "$Id: insmod.c,v 1.74 2001/10/24 04:59:54 andersen Exp $" 136#ident "$Id: insmod.c,v 1.75 2001/11/12 16:57:26 kraai Exp $"
137 137
138/* This file contains the structures used by the 2.0 and 2.1 kernels. 138/* This file contains the structures used by the 2.0 and 2.1 kernels.
139 We do not use the kernel headers directly because we do not wish 139 We do not use the kernel headers directly because we do not wish
@@ -350,7 +350,7 @@ int delete_module(const char *);
350#ifndef MODUTILS_OBJ_H 350#ifndef MODUTILS_OBJ_H
351static const int MODUTILS_OBJ_H = 1; 351static const int MODUTILS_OBJ_H = 1;
352 352
353#ident "$Id: insmod.c,v 1.74 2001/10/24 04:59:54 andersen Exp $" 353#ident "$Id: insmod.c,v 1.75 2001/11/12 16:57:26 kraai Exp $"
354 354
355/* The relocatable object is manipulated using elfin types. */ 355/* The relocatable object is manipulated using elfin types. */
356 356
@@ -724,7 +724,7 @@ static int check_module_name_match(const char *filename, struct stat *statbuf,
724 if (fullname[0] == '\0') 724 if (fullname[0] == '\0')
725 return (FALSE); 725 return (FALSE);
726 else { 726 else {
727 char *tmp, *tmp1 = strdup(filename); 727 char *tmp, *tmp1 = xstrdup(filename);
728 tmp = get_last_path_component(tmp1); 728 tmp = get_last_path_component(tmp1);
729 if (strcmp(tmp, fullname) == 0) { 729 if (strcmp(tmp, fullname) == 0) {
730 free(tmp1); 730 free(tmp1);