Cleanup library references to libroken.

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@5522 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Björn Groenvall
1999-03-11 18:14:53 +00:00
parent 848ac697e8
commit 5d602b0ef4
3 changed files with 8 additions and 25 deletions

View File

@@ -54,11 +54,12 @@ error_message (long code)
{
static char msg[128];
const char *p = com_right(_et_list, code);
if(p == NULL)
if (p == NULL)
p = strerror(code);
if(p != NULL && *p != '\0')
strcpy_truncate(msg, p, sizeof(msg));
else
if (p != NULL && *p != '\0') {
strncpy(msg, p, sizeof(msg));
msg[sizeof(msg)] = 0;
} else
sprintf(msg, "Unknown error %ld", code);
return msg;
}