From 8ba855033bbe472102340cda4d6c7e9f4238d332 Mon Sep 17 00:00:00 2001 From: Martin Simbartl Date: Wed, 7 Sep 2011 23:22:00 +0200 Subject: [PATCH] Capitalize Valgrind to keep it consistent with the rest of the text. --- ex8.tex | 4 ++-- ex9.tex | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/ex8.tex b/ex8.tex index 1d2a1f3..44d0313 100644 --- a/ex8.tex +++ b/ex8.tex @@ -92,13 +92,13 @@ \section{How To Break It} \begin{enumerate} \item Get rid of the \verb|'\0'| at the end of \ident{full\_name} - and re-run it. Run it under valgrind too. Now, move the definition + and re-run it. Run it under Valgrind too. Now, move the definition of \ident{full\_name} to the top of \ident{main} before \ident{areas}. Try running it under Valgrind a few times and see if you get some new errors. In some cases, you might still get lucky and not catch any errors. \item Change it so that instead of \verb|areas[0]| you try to - print \verb|areas[10]| and see what valgrind thinks of that. + print \verb|areas[10]| and see what Valgrind thinks of that. \item Try other versions of these, doing it to \ident{name} and \ident{full\_name} too. \end{enumerate} diff --git a/ex9.tex b/ex9.tex index aad9fe7..4986209 100644 --- a/ex9.tex +++ b/ex9.tex @@ -73,7 +73,7 @@ \section{How To Break It} \end{enumerate} Try to come up with some other ways to break this, and as usual run all of -these under valgrind so you can see exactly what is going on and what the +these under Valgrind so you can see exactly what is going on and what the errors are called. Sometimes you'll make these mistakes and even Valgrind can't find them, but try moving where you declare the variables to see if you get the error. This is part of the voodoo of C, that