strl-20070102

str->strl
This commit is contained in:
Jim Rees 2007-01-02 16:48:33 +00:00
parent a132e7f545
commit 11999d395c

View File

@ -145,10 +145,10 @@ error_message(afs_int32 code)
} }
oops: oops:
UNLOCK_ET_LIST; UNLOCK_ET_LIST;
strcpy(buffer, "Unknown code "); strlcpy(buffer, "Unknown code ", sizeof buffer);
if (table_num) { if (table_num) {
strcat(buffer, error_table_name(table_num)); strlcat(buffer, error_table_name(table_num), sizeof buffer);
strcat(buffer, " "); strlcat(buffer, " ", sizeof buffer);
} }
for (cp = buffer; *cp; cp++); for (cp = buffer; *cp; cp++);
if (offset >= 100) { if (offset >= 100) {