Question for char *

Hello guys.I do not know where i am wrong.IN part of my program a am working with char *.ReturnWord returns one word in my case it has two characters (word do) but
when i look in my debugger strlen(pom) is 7,an I can not figure out what is the problem.I know that string are better,but does anybody knows what might be a problem?

1
2
 char * pom = new char[strlen(r.ReturnWord()) + 1];
	strcpy_s(pom,strlen( r.ReturnWord() + 1), r.ReturnWord());

> strlen( r.ReturnWord() + 1)
You need to watch where you place the ( )

Thank you very much.
Topic archived. No new replies allowed.