From 1ebe1b9414f9ba50abbb2a7d1f788cade0516d80 Mon Sep 17 00:00:00 2001 From: David du Colombier <0intro@gmail.com> Date: Fri, 22 Mar 1991 00:00:00 +0000 Subject: [PATCH] Plan 9 from Bell Labs 1991-03-22 --- gnot/trap.c | 2 +- power/trap.c | 2 +- ss/trap.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/gnot/trap.c b/gnot/trap.c index 0c6e8a89842d1d0126eecce0aa18cfcc38b9ad46..bb1f777dc2d31fcd16051919c4fd45cc77e64203 100644 --- a/gnot/trap.c +++ b/gnot/trap.c @@ -314,7 +314,7 @@ error(int code) void errors(char *err) { - strncpy(u->error, err, NAMELEN); + strncpy(u->error, err, ERRLEN); nexterror(); } diff --git a/power/trap.c b/power/trap.c index 81f3750342a91182b91553d11cb9c25b3bbe4909..242813929727bc1f665e89bc7659ec2a5a549f66 100644 --- a/power/trap.c +++ b/power/trap.c @@ -535,7 +535,7 @@ error(int code) void errors(char *err) { - strncpy(u->error, err, NAMELEN); + strncpy(u->error, err, ERRLEN); nexterror(); } diff --git a/ss/trap.c b/ss/trap.c index ca4f95baa2cf9b76ff1073e68c582c72496c12c6..525b5e76398780b7ea347016a67671d7e7405cc1 100644 --- a/ss/trap.c +++ b/ss/trap.c @@ -384,7 +384,7 @@ error(int code) void errors(char *err) { - strncpy(u->error, err, NAMELEN); + strncpy(u->error, err, ERRLEN); nexterror(); }