summaryrefslogtreecommitdiff
path: root/application-devel/app-debugging/pres_app-debugging_de.tex
diff options
context:
space:
mode:
authorManuel Traut <manut@linutronix.de>2011-01-28 13:17:04 +0100
committerManuel Traut <manut@linutronix.de>2011-01-28 13:17:04 +0100
commit2354b12678f07579815356ec10eef193a64bb2a6 (patch)
tree9cefef7a3380c85c68c4bca741487eb3aad02d40 /application-devel/app-debugging/pres_app-debugging_de.tex
parent7e5883bbd6e699d1fcee0814c5a172d6348bd63c (diff)
parent5bc3f53265144faf43e16031483d92f581766a2b (diff)
Merge branch 'jan'
Conflicts: application-devel/embedded-devel/pres_embedded-devel_de.tex flash-memory/flash-filesystems/pres_flashfilesystems_en.tex linux-basics/linux-processes/pres_linux-processes_en.tex Signed-off-by: Manuel Traut <manut@linutronix.de>
Diffstat (limited to 'application-devel/app-debugging/pres_app-debugging_de.tex')
-rw-r--r--application-devel/app-debugging/pres_app-debugging_de.tex4
1 files changed, 2 insertions, 2 deletions
diff --git a/application-devel/app-debugging/pres_app-debugging_de.tex b/application-devel/app-debugging/pres_app-debugging_de.tex
index 32a3e85..9f6c5ca 100644
--- a/application-devel/app-debugging/pres_app-debugging_de.tex
+++ b/application-devel/app-debugging/pres_app-debugging_de.tex
@@ -173,7 +173,7 @@ Loaded symbols for /lib64/ld-linux-x86-64.so.2
Core was generated by `./hello_segfault'.
Program terminated with signal 11, Segmentation fault.
#0 0x0000000000400538 in main () at hello_crash.c:6
-6 printf("Hello segfaulting world\n",
+6 printf("Hello segfaulting world %s\n",
*arthur_dent);
(gdb) bt
#0 0x0000000000400538 in main () at hello_crash.c:6
@@ -376,7 +376,7 @@ int main(void)
{
int *my_array = (int*) malloc(10 * sizeof(int));
int i = 0;
- memset(my_array, 0, 10);
+ memset(my_array, 0, 10 * sizeof(int));
for(i = 0; i < 11; i++)
printf("%d ", my_array[i]);