Changes between Initial Version and Version 1 of Ticket #2086, comment 8


Ignore:
Timestamp:
Nov 20, 2014, 6:45:07 PM (9 years ago)
Author:
leper

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #2086, comment 8

    initial v1  
    55 * 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.
    66 * 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]).