diff --git a/booksrc/errorchecked_heap.c b/booksrc/errorchecked_heap.c index ee9f1fd..139a8d5 100644 --- a/booksrc/errorchecked_heap.c +++ b/booksrc/errorchecked_heap.c @@ -17,7 +17,7 @@ int main(int argc, char *argv[]) { printf("\t[+] allocating %d bytes of memory on the heap for char_ptr\n", mem_size); char_ptr = (char *) errorchecked_malloc(mem_size); // allocating heap memory - strcpy(char_ptr, "This is memory is located on the heap."); + strcpy(char_ptr, "This memory is located on the heap."); printf("char_ptr (%p) --> '%s'\n", char_ptr, char_ptr); printf("\t[+] allocating 12 bytes of memory on the heap for int_ptr\n"); diff --git a/booksrc/heap_example.c b/booksrc/heap_example.c index e3dda98..0612301 100644 --- a/booksrc/heap_example.c +++ b/booksrc/heap_example.c @@ -20,7 +20,7 @@ int main(int argc, char *argv[]) { exit(-1); } - strcpy(char_ptr, "This is memory is located on the heap."); + strcpy(char_ptr, "This memory is located on the heap."); printf("char_ptr (%p) --> '%s'\n", char_ptr, char_ptr); printf("\t[+] allocating 12 bytes of memory on the heap for int_ptr\n");