diff --git a/src/c/a3.c b/src/c/a3.c index c575ef4..9ec395a 100644 --- a/src/c/a3.c +++ b/src/c/a3.c @@ -62,7 +62,7 @@ int main(int argc, char **argv) { memdump((unsigned char *) argv[0]); - printf("\tLaenge der Zeichenkette (inkl \\0): %i Byte(s)\n", (int) strlen(argv[1])); + printf("\tLaenge der Zeichenkette (inkl \\0): %i Byte(s)\n", (int) strlen(argv[1]) +1); printf("\tErsetzen: '%c' mit '%c'\n", *argv[2], *argv[3]); unsigned char *copy = malloc(4 * 16 * sizeof(char));//allocate memory for all chars