aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/librc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/librc.c b/src/librc.c
index 8e8f4ea5..e6b16820 100644
--- a/src/librc.c
+++ b/src/librc.c
@@ -86,7 +86,7 @@ char *rc_get_runlevel (void)
if (! (fp = fopen (SOFTLEVEL, "r")))
{
- strcpy (buffer, "sysinit");
+ snprintf (buffer, sizeof (buffer), "sysinit");
return (buffer);
}
@@ -100,7 +100,7 @@ char *rc_get_runlevel (void)
}
fclose (fp);
- strcpy (buffer, "sysinit");
+ snprintf (buffer, sizeof (buffer), "sysinit");
return (buffer);
}