summaryrefslogtreecommitdiff
path: root/sys/arch/i386/isa/pcvt
diff options
context:
space:
mode:
authorAaron Campbell <aaron@cvs.openbsd.org>1999-05-24 15:15:33 +0000
committerAaron Campbell <aaron@cvs.openbsd.org>1999-05-24 15:15:33 +0000
commit2288d57f5b59aa20f8c96fef5e0b4529ef14053a (patch)
treea66712be03120efac9f8cb7ca384395cb8928d97 /sys/arch/i386/isa/pcvt
parenta80b01caecfc8a0844f7b6eecf9281fb0850d924 (diff)
fix buf oflow
Diffstat (limited to 'sys/arch/i386/isa/pcvt')
-rw-r--r--sys/arch/i386/isa/pcvt/Util/cursor/cursor.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/arch/i386/isa/pcvt/Util/cursor/cursor.c b/sys/arch/i386/isa/pcvt/Util/cursor/cursor.c
index 09e27d094f2..8921949d927 100644
--- a/sys/arch/i386/isa/pcvt/Util/cursor/cursor.c
+++ b/sys/arch/i386/isa/pcvt/Util/cursor/cursor.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: cursor.c,v 1.5 1999/01/13 07:26:03 niklas Exp $ */
+/* $OpenBSD: cursor.c,v 1.6 1999/05/24 15:15:32 aaron Exp $ */
/*
* Copyright (c) 1992, 1995 Hellmuth Michaelis
@@ -117,7 +117,7 @@ char *argv[];
{
char buffer[80];
strcpy(buffer,"ERROR opening ");
- strcat(buffer,device);
+ strncat(buffer,device,sizeof(buffer) - strlen(buffer));
perror(buffer);
exit(1);
}
@@ -131,7 +131,7 @@ char *argv[];
{
char buffer[80];
strcpy(buffer,"ERROR opening ");
- strcat(buffer,device);
+ strncat(buffer,device,sizeof(buffer) - strlen(buffer));
perror(buffer);
exit(1);
}