copy char array result is wrong

Hello

I've defined 2 Fields:
char char1[25]
fields as part of a structure and
copy char1 into char2.

With

Code:

memcpy (char2, char1, sizeof (char1))

also have

Code:

strcpy (char2, char1)

tried, but does not work either.

but the result in char2 is always 1 char too long?

I do not understand that

What is the mistake?

Thank you

What is the mistake?

You didn't post your code.