summaryrefslogtreecommitdiffstats
path: root/src/cmd/tpic/input.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/cmd/tpic/input.c')
-rw-r--r--src/cmd/tpic/input.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cmd/tpic/input.c b/src/cmd/tpic/input.c
index 85b7dbb5..c4c975b0 100644
--- a/src/cmd/tpic/input.c
+++ b/src/cmd/tpic/input.c
@@ -586,7 +586,7 @@ char shellbuf[1000], *shellp;
void
shell_init(void) /* set up to interpret a shell command */
{
- sprintf(shellbuf, "sh -c '");
+ snprintf(shellbuf, sizeof shellbuf, "sh -c '");
shellp = shellbuf + strlen(shellbuf);
}