Changes between Initial Version and Version 1 of Ticket #2086, comment 8
- Timestamp:
- Nov 20, 2014, 6:45:07 PM (9 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #2086, comment 8
initial v1 5 5 * You should `\0`-terminate buffer (write it into `buffer[pos]` where pos is the return value of readlink). Else `strrchr` will read until it finds a null-byte on the stack. 6 6 * The comment you removed was not the one I meant. (Remove `"Ask /proc/self/exe where we are"` as that is obvious from the code, the one for `strrchr` does not add anything either.) 7 * Remove braces around single line blocks (See [wiki:Coding_Conventions] .7 * Remove braces around single line blocks (See [wiki:Coding_Conventions]).