Search:

Type: Posts; User: Salem

Search: Search took 0.38 seconds.

  1. Replies
    19
    Views
    20,191

    > snprintf(small, i, "%s", big); Well yeah,...

    > snprintf(small, i, "%s", big);
    Well yeah, when you lie about the size of the buffer, then it's gonna hurt you at some point.

    Anyway, it will be the shell which prints segmentation fault, not...
  2. Replies
    19
    Views
    20,191

    http://forums.devshed.com/c-programming-42/system-...

    http://forums.devshed.com/c-programming-42/system-output-587772.html
    Your code still looks like some non-compilable pseudo-code you just typed out, rather than anything which you've run.

    What's...
Results 1 to 2 of 2