|
|
|
|
|
by mappu
4377 days ago
|
|
>What's the design reason for Windows tools to only have a max of 260 file path chars? So in C you can just say `char buff[MAX_PATH] = {0};` and not worry about heap allocation. That's also the reason why it can't ever be extended - because MAX_PATH is compiled into every binary and you would create instant buffer overflow vulnerabilities in a lot of software. It was a reasonably good idea at the time the decision was made. |
|