summaryrefslogtreecommitdiff
path: root/sbin/modload
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1995-12-30 10:44:50 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1995-12-30 10:44:50 +0000
commit46a086a13002b66928d64483c5b9d4c953a345eb (patch)
tree62c0e3226973fd8e2206fdc692a7ae1968ba9756 /sbin/modload
parenta7d978a3c41b4896718d622ad64222c3289ffdc0 (diff)
use strrchr() instead of strchr() to find .o extension; from explorer@flame.org; netbsd pr#1868
Diffstat (limited to 'sbin/modload')
-rw-r--r--sbin/modload/modload.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sbin/modload/modload.c b/sbin/modload/modload.c
index 132ee451507..31c21f935ca 100644
--- a/sbin/modload/modload.c
+++ b/sbin/modload/modload.c
@@ -208,7 +208,7 @@ main(argc, argv)
strcpy(modout, modobj);
- p = strchr(modout, '.');
+ p = strrchr(modout, '.');
if (!p || strcmp(p, ".o"))
errx(2, "module object must end in .o");
if (out == NULL) {