* path.cc (readlink): Check if buffer length is positive. Truncate output to
buffer length. Don't terminate buffer with '\0'.
This commit is contained in:
@@ -41,7 +41,7 @@ per_module::run_ctors ()
|
||||
int i;
|
||||
for (i = 1; pfunc[i]; i++);
|
||||
|
||||
for (int j = i - 1; j > 0; j-- )
|
||||
for (int j = i - 1; j > 0; j--)
|
||||
(pfunc[j]) ();
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user