3 ms·
>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 abou
by mappu 12y 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.
- rgawdzik 12y agoFair enough, makes sense from the C perspective.