forked from pool/e2fsprogs
39 lines
797 B
Diff
39 lines
797 B
Diff
--- e2fsprogs-1.39/lib/et/error_message.c
|
|
+++ e2fsprogs-1.39/lib/et/error_message.c
|
|
@@ -24,8 +24,6 @@
|
|
#include "error_table.h"
|
|
#include "internal.h"
|
|
|
|
-static char buffer[25];
|
|
-
|
|
struct et_list * _et_list = (struct et_list *) NULL;
|
|
struct et_list * _et_dynamic_list = (struct et_list *) NULL;
|
|
|
|
@@ -70,25 +68,7 @@
|
|
}
|
|
}
|
|
oops:
|
|
- strcpy (buffer, "Unknown code ");
|
|
- if (table_num) {
|
|
- strcat (buffer, error_table_name (table_num));
|
|
- strcat (buffer, " ");
|
|
- }
|
|
- for (cp = buffer; *cp; cp++)
|
|
- ;
|
|
- if (offset >= 100) {
|
|
- *cp++ = '0' + offset / 100;
|
|
- offset %= 100;
|
|
- started++;
|
|
- }
|
|
- if (started || offset >= 10) {
|
|
- *cp++ = '0' + offset / 10;
|
|
- offset %= 10;
|
|
- }
|
|
- *cp++ = '0' + offset;
|
|
- *cp = '\0';
|
|
- return(buffer);
|
|
+ return "Unknown code";
|
|
}
|
|
|
|
/*
|