mirror of
https://github.com/sheumann/hush.git
synced 2024-12-27 16:31:24 +00:00
Fix a unterminated string.
-Erik
This commit is contained in:
parent
aaa94fb8a9
commit
089d12d762
6
insmod.c
6
insmod.c
@ -70,7 +70,7 @@
|
|||||||
#ifndef MODUTILS_MODULE_H
|
#ifndef MODUTILS_MODULE_H
|
||||||
#define MODUTILS_MODULE_H 1
|
#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.
|
/* 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
|
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
|
#ifndef MODUTILS_OBJ_H
|
||||||
#define MODUTILS_OBJ_H 1
|
#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. */
|
/* The relocatable object is manipulated using elfin types. */
|
||||||
|
|
||||||
@ -576,7 +576,7 @@ static int findNamedModule(const char *fileName, struct stat *statbuf,
|
|||||||
tmp++;
|
tmp++;
|
||||||
if (check_wildcard_match(tmp, fullName) == TRUE) {
|
if (check_wildcard_match(tmp, fullName) == TRUE) {
|
||||||
/* Stop searching if we find a match */
|
/* Stop searching if we find a match */
|
||||||
memcpy(m_filename, fileName, strlen(fileName));
|
memcpy(m_filename, fileName, strlen(fileName)+1);
|
||||||
return (FALSE);
|
return (FALSE);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -70,7 +70,7 @@
|
|||||||
#ifndef MODUTILS_MODULE_H
|
#ifndef MODUTILS_MODULE_H
|
||||||
#define MODUTILS_MODULE_H 1
|
#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.
|
/* 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
|
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
|
#ifndef MODUTILS_OBJ_H
|
||||||
#define MODUTILS_OBJ_H 1
|
#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. */
|
/* The relocatable object is manipulated using elfin types. */
|
||||||
|
|
||||||
@ -576,7 +576,7 @@ static int findNamedModule(const char *fileName, struct stat *statbuf,
|
|||||||
tmp++;
|
tmp++;
|
||||||
if (check_wildcard_match(tmp, fullName) == TRUE) {
|
if (check_wildcard_match(tmp, fullName) == TRUE) {
|
||||||
/* Stop searching if we find a match */
|
/* Stop searching if we find a match */
|
||||||
memcpy(m_filename, fileName, strlen(fileName));
|
memcpy(m_filename, fileName, strlen(fileName)+1);
|
||||||
return (FALSE);
|
return (FALSE);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user