summaryrefslogtreecommitdiff
path: root/sys/arch/i386/isa/pcvt/Util/demo/playvt.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/arch/i386/isa/pcvt/Util/demo/playvt.c')
-rw-r--r--sys/arch/i386/isa/pcvt/Util/demo/playvt.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/arch/i386/isa/pcvt/Util/demo/playvt.c b/sys/arch/i386/isa/pcvt/Util/demo/playvt.c
index d332618e89a..d9a1c9f0bc0 100644
--- a/sys/arch/i386/isa/pcvt/Util/demo/playvt.c
+++ b/sys/arch/i386/isa/pcvt/Util/demo/playvt.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: playvt.c,v 1.3 1999/01/13 07:26:03 niklas Exp $ */
+/* $OpenBSD: playvt.c,v 1.4 1999/05/24 15:37:43 aaron Exp $ */
/*
* Copyright (c) 1995 Hellmuth Michaelis
@@ -87,7 +87,7 @@ char *argv[];
{
char buffer[80];
strcpy(buffer,"ERROR opening file ");
- strcat(buffer,filename);
+ strncat(buffer,filename,sizeof(buffer) - strlen(buffer));
perror(buffer);
exit(1);
}