Search:

Type: Posts; User: laserlight

Search: Search took 0.31 seconds.

  1. Replies
    42
    Views
    25,789

    Ah yes. However, I think that the real fix is to...

    Ah yes. However, I think that the real fix is to change the parameter to be an unsigned int instead, or perhaps more appropriately, size_t.
  2. Replies
    42
    Views
    25,789

    Okay, I admit, I do not get it. As far as I can...

    Okay, I admit, I do not get it. As far as I can tell MAX_LEN == sizeof(buf) since sizeof(char) is guaranteed to be 1, so what is wrong with the original code?
  3. Replies
    42
    Views
    25,789

    Once you disable the "secure" warnings, the rest...

    Once you disable the "secure" warnings, the rest should actually be useful, though often benign as in they just require a legitimate type cast to silence.
Results 1 to 3 of 3