|
Line
Link Here
|
|
-- e2fsprogs-1.36/lib/et/error_message.c |
|
|
|
Lines 25-32
Link Here
|
| 25 |
#include "error_table.h" |
25 |
#include "error_table.h" |
| 26 |
#include "internal.h" |
26 |
#include "internal.h" |
| 27 |
|
27 |
|
| 28 |
static char buffer[25]; |
|
|
| 29 |
|
| 30 |
struct et_list * _et_list = (struct et_list *) NULL; |
28 |
struct et_list * _et_list = (struct et_list *) NULL; |
| 31 |
|
29 |
|
| 32 |
struct et_denv { |
30 |
struct et_denv { |
|
Lines 86-110
Link Here
|
| 86 |
} |
84 |
} |
| 87 |
et_list_unlock(); |
85 |
et_list_unlock(); |
| 88 |
oops: |
86 |
oops: |
| 89 |
strcpy (buffer, "Unknown code "); |
87 |
return "Unknown code"; |
| 90 |
if (table_num) { |
|
|
| 91 |
strcat (buffer, error_table_name (table_num)); |
| 92 |
strcat (buffer, " "); |
| 93 |
} |
| 94 |
for (cp = buffer; *cp; cp++) |
| 95 |
; |
| 96 |
if (offset >= 100) { |
| 97 |
*cp++ = '0' + offset / 100; |
| 98 |
offset %= 100; |
| 99 |
started++; |
| 100 |
} |
| 101 |
if (started || offset >= 10) { |
| 102 |
*cp++ = '0' + offset / 10; |
| 103 |
offset %= 10; |
| 104 |
} |
| 105 |
*cp++ = '0' + offset; |
| 106 |
*cp = '\0'; |
| 107 |
return(buffer); |
| 108 |
} |
88 |
} |
| 109 |
|
89 |
|
| 110 |
/* |
90 |
/* |