From 11999d395c6b9b0c02d8acb725c2cc66270cd908 Mon Sep 17 00:00:00 2001 From: Jim Rees Date: Tue, 2 Jan 2007 16:48:33 +0000 Subject: [PATCH] strl-20070102 str->strl --- src/comerr/error_msg.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/comerr/error_msg.c b/src/comerr/error_msg.c index ac8855bbe0..5ca56607bb 100644 --- a/src/comerr/error_msg.c +++ b/src/comerr/error_msg.c @@ -145,10 +145,10 @@ error_message(afs_int32 code) } oops: UNLOCK_ET_LIST; - strcpy(buffer, "Unknown code "); + strlcpy(buffer, "Unknown code ", sizeof buffer); if (table_num) { - strcat(buffer, error_table_name(table_num)); - strcat(buffer, " "); + strlcat(buffer, error_table_name(table_num), sizeof buffer); + strlcat(buffer, " ", sizeof buffer); } for (cp = buffer; *cp; cp++); if (offset >= 100) {