summaryrefslogtreecommitdiff
path: root/modutils
diff options
context:
space:
mode:
authorMatt Kraai2001-11-12 16:57:27 +0000
committerMatt Kraai2001-11-12 16:57:27 +0000
commitc8227639db90c3147ef68f33c98e96b0ab6b01d6 (patch)
treeb704ef3f684a41c7705b5e36dac2127d23d129c4 /modutils
parent357cfc739ed5f5c00ee46a43820a1d02367e3b38 (diff)
downloadbusybox-c8227639db90c3147ef68f33c98e96b0ab6b01d6.zip
busybox-c8227639db90c3147ef68f33c98e96b0ab6b01d6.tar.gz
Change strdup calls to xstrdup (patch from Steve Merrifield).
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 c21f22b..8668aaa 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);