summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Andersen2000-08-22 05:18:30 +0000
committerEric Andersen2000-08-22 05:18:30 +0000
commit089d12d762ddaa9d4be2df1e1ffc21bdfc34902a (patch)
tree9850aa1f6187980149769c8a6c13cde3139554b6
parentaaa94fb8a9e470d19d2447e843941e68cea3babf (diff)
downloadbusybox-089d12d762ddaa9d4be2df1e1ffc21bdfc34902a.zip
busybox-089d12d762ddaa9d4be2df1e1ffc21bdfc34902a.tar.gz
Fix a unterminated string.
-Erik
-rw-r--r--insmod.c6
-rw-r--r--modutils/insmod.c6
2 files changed, 6 insertions, 6 deletions
diff --git a/insmod.c b/insmod.c
index 0b06b5c..4e159be 100644
--- a/insmod.c
+++ b/insmod.c
@@ -70,7 +70,7 @@
#ifndef MODUTILS_MODULE_H
#define MODUTILS_MODULE_H 1
-#ident "$Id: insmod.c,v 1.21 2000/08/21 19:38:49 andersen Exp $"
+#ident "$Id: insmod.c,v 1.22 2000/08/22 05:18:30 andersen 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
@@ -276,7 +276,7 @@ int delete_module(const char *);
#ifndef MODUTILS_OBJ_H
#define MODUTILS_OBJ_H 1
-#ident "$Id: insmod.c,v 1.21 2000/08/21 19:38:49 andersen Exp $"
+#ident "$Id: insmod.c,v 1.22 2000/08/22 05:18:30 andersen Exp $"
/* The relocatable object is manipulated using elfin types. */
@@ -576,7 +576,7 @@ static int findNamedModule(const char *fileName, struct stat *statbuf,
tmp++;
if (check_wildcard_match(tmp, fullName) == TRUE) {
/* Stop searching if we find a match */
- memcpy(m_filename, fileName, strlen(fileName));
+ memcpy(m_filename, fileName, strlen(fileName)+1);
return (FALSE);
}
}
diff --git a/modutils/insmod.c b/modutils/insmod.c
index 0b06b5c..4e159be 100644
--- a/modutils/insmod.c
+++ b/modutils/insmod.c
@@ -70,7 +70,7 @@
#ifndef MODUTILS_MODULE_H
#define MODUTILS_MODULE_H 1
-#ident "$Id: insmod.c,v 1.21 2000/08/21 19:38:49 andersen Exp $"
+#ident "$Id: insmod.c,v 1.22 2000/08/22 05:18:30 andersen 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
@@ -276,7 +276,7 @@ int delete_module(const char *);
#ifndef MODUTILS_OBJ_H
#define MODUTILS_OBJ_H 1
-#ident "$Id: insmod.c,v 1.21 2000/08/21 19:38:49 andersen Exp $"
+#ident "$Id: insmod.c,v 1.22 2000/08/22 05:18:30 andersen Exp $"
/* The relocatable object is manipulated using elfin types. */
@@ -576,7 +576,7 @@ static int findNamedModule(const char *fileName, struct stat *statbuf,
tmp++;
if (check_wildcard_match(tmp, fullName) == TRUE) {
/* Stop searching if we find a match */
- memcpy(m_filename, fileName, strlen(fileName));
+ memcpy(m_filename, fileName, strlen(fileName)+1);
return (FALSE);
}
}