diff options
author | 1999-05-24 15:15:32 +0000 | |
---|---|---|
committer | 1999-05-24 15:15:32 +0000 | |
commit | aaabb92ec6b8242c8de3c225c0d5cc4e344ff7e2 (patch) | |
tree | 0c415a345b7733da2eb41e917618a45005259585 | |
parent | document the -m flag, normally only used by su(1); woods@most.weird.com, (diff) | |
download | wireguard-openbsd-aaabb92ec6b8242c8de3c225c0d5cc4e344ff7e2.tar.xz wireguard-openbsd-aaabb92ec6b8242c8de3c225c0d5cc4e344ff7e2.zip |
fix buf oflow
-rw-r--r-- | sys/arch/i386/isa/pcvt/Util/cursor/cursor.c | 6 |
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); } |