diff options
| author | andersen <andersen@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2001-01-26 01:52:14 +0000 |
|---|---|---|
| committer | andersen <andersen@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2001-01-26 01:52:14 +0000 |
| commit | 18fed9719e76c708d463c0db223d5eab654b4895 (patch) | |
| tree | f37031e8e09acfc1ea6e03eaea70692db1845221 /modutils | |
| parent | 925eb561440e5f797612a1186814c2df2fc729b1 (diff) | |
| download | busybox-w32-18fed9719e76c708d463c0db223d5eab654b4895.tar.gz busybox-w32-18fed9719e76c708d463c0db223d5eab654b4895.tar.bz2 busybox-w32-18fed9719e76c708d463c0db223d5eab654b4895.zip | |
Fix a stupid bug I introduced yesterday. Doh!
-Erik
git-svn-id: svn://busybox.net/trunk/busybox@1676 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'modutils')
| -rw-r--r-- | modutils/insmod.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/modutils/insmod.c b/modutils/insmod.c index c51ee4f32..c0c7d3183 100644 --- a/modutils/insmod.c +++ b/modutils/insmod.c | |||
| @@ -78,7 +78,7 @@ | |||
| 78 | #ifndef MODUTILS_MODULE_H | 78 | #ifndef MODUTILS_MODULE_H |
| 79 | static const int MODUTILS_MODULE_H = 1; | 79 | static const int MODUTILS_MODULE_H = 1; |
| 80 | 80 | ||
| 81 | #ident "$Id: insmod.c,v 1.40 2001/01/25 04:11:06 andersen Exp $" | 81 | #ident "$Id: insmod.c,v 1.41 2001/01/26 01:52:14 andersen Exp $" |
| 82 | 82 | ||
| 83 | /* This file contains the structures used by the 2.0 and 2.1 kernels. | 83 | /* This file contains the structures used by the 2.0 and 2.1 kernels. |
| 84 | We do not use the kernel headers directly because we do not wish | 84 | We do not use the kernel headers directly because we do not wish |
| @@ -284,7 +284,7 @@ int delete_module(const char *); | |||
| 284 | #ifndef MODUTILS_OBJ_H | 284 | #ifndef MODUTILS_OBJ_H |
| 285 | static const int MODUTILS_OBJ_H = 1; | 285 | static const int MODUTILS_OBJ_H = 1; |
| 286 | 286 | ||
| 287 | #ident "$Id: insmod.c,v 1.40 2001/01/25 04:11:06 andersen Exp $" | 287 | #ident "$Id: insmod.c,v 1.41 2001/01/26 01:52:14 andersen Exp $" |
| 288 | 288 | ||
| 289 | /* The relocatable object is manipulated using elfin types. */ | 289 | /* The relocatable object is manipulated using elfin types. */ |
| 290 | 290 | ||
| @@ -2932,10 +2932,10 @@ extern int insmod_main( int argc, char **argv) | |||
| 2932 | if (len > 2 && tmp[len - 2] == '.' && tmp[len - 1] == 'o') | 2932 | if (len > 2 && tmp[len - 2] == '.' && tmp[len - 1] == 'o') |
| 2933 | len -= 2; | 2933 | len -= 2; |
| 2934 | strncpy(m_fullName, tmp, len); | 2934 | strncpy(m_fullName, tmp, len); |
| 2935 | strcat(m_fullName, ".o"); | 2935 | if (*m_name == '\0') { |
| 2936 | if (m_name == NULL) { | 2936 | strcpy(m_name, m_fullName); |
| 2937 | memcpy(m_name, tmp, len); | ||
| 2938 | } | 2937 | } |
| 2938 | strcat(m_fullName, ".o"); | ||
| 2939 | 2939 | ||
| 2940 | /* Get a filedesc for the module */ | 2940 | /* Get a filedesc for the module */ |
| 2941 | if ((fp = fopen(argv[optind], "r")) == NULL) { | 2941 | if ((fp = fopen(argv[optind], "r")) == NULL) { |
