There is only a tiny issue with it : For some reason its able to accept a string that is too long to place in the target buffer, *but still
succeed*.
A few tests show that it just copies what it can and terminates that with a NUL.
Then what do you need to happen when the buffer doesn't have enough space?
Cause, that result is what a safe string copy process would do.
I could as easily imagine that it would return an error. What good does a partial copied string do ? It might even be dangerous (in my case: causing the wrong file or folder to be accessed) ...
Some strings are copied just for displays where if the source is
too long, the result will be truncated. Showing as much information
as possible.
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 379 |
Nodes: | 16 (2 / 14) |
Uptime: | 42:46:46 |
Calls: | 8,141 |
Calls today: | 4 |
Files: | 13,085 |
Messages: | 5,857,851 |