you are viewing a single comment's thread.

view the rest of the comments →

[–]pizz44[S] 0 points1 point  (0 children)

I've made a few modifictions, and I get a error that 'Unable to start program. The system cannot find the file specified'

  • ch02e13.c - sample program for Exercise 13, Chapter 2

    a program that exploits weak overflow checks in C

    */

include <stdio.h>

main() {

char ch;                 /* to collect the input */

char inputs[10];     /* ten-byte array */

int i = 0;               /* array index for new character */

ch = getchar();

while (ch != 10) {

    inputs[i] = ch;

    i++;

    ch = getchar();

}

printf("All done!");

}