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