I'm using VC++. strncpy_s() requires 4 parameters ,not 3 like strncpy().
I changed it to this:
strncpy_s(newSentence, sizeof(newSentence), &Sentence[FromNumber], offset);
However, if I use 0 and 3 as the firsts and second parameter, the function works. If I use 0 and 4 or anything higher...