aboutsummaryrefslogtreecommitdiff
path: root/gcc/fortran/module.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/fortran/module.c')
-rw-r--r--gcc/fortran/module.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/fortran/module.c b/gcc/fortran/module.c
index c90fe0d..02f5756 100644
--- a/gcc/fortran/module.c
+++ b/gcc/fortran/module.c
@@ -4372,8 +4372,8 @@ read_module (void)
p = name;
/* Exception: Always import vtabs & vtypes. */
- if (p == NULL && (strcmp (xstrndup (name,5), "vtab$") == 0
- || strcmp (xstrndup (name,6), "vtype$") == 0))
+ if (p == NULL && (strncmp (name, "vtab$", 5) == 0
+ || strncmp (name, "vtype$", 6) == 0))
p = name;
/* Skip symtree nodes not in an ONLY clause, unless there