gas strncpy warning
[deliverable/binutils-gdb.git] / gas / read.c
index e603099e940fcdf712fe8d6b357b5c4d4680c4ab..784d6a8f79e6a99f9ea17ebe82d62401eb00d22f 100644 (file)
@@ -1052,7 +1052,8 @@ read_a_source_file (const char *name)
                  {
                    char *s2 = s;
 
-                   strncpy (original_case_string, s2, sizeof (original_case_string));
+                   strncpy (original_case_string, s2,
+                            sizeof (original_case_string) - 1);
                    original_case_string[sizeof (original_case_string) - 1] = 0;
 
                    while (*s2)
This page took 0.024874 seconds and 4 git commands to generate.