prevent buf from escaping into global namespace
This commit is contained in:
parent
0c87114ee1
commit
03b616da62
@ -255,7 +255,7 @@ int _write(int file, char *ptr, int len) {
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
char buf[256] = {0};
|
static char buf[256] = {0};
|
||||||
|
|
||||||
int _read(int file, char *ptr, int len) {
|
int _read(int file, char *ptr, int len) {
|
||||||
(void)file;
|
(void)file;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user