Fixed strncpyWithEOS

This commit is contained in:
MarkRivers
2006-05-10 22:15:36 +00:00
parent 9778e9feca
commit 757d623b2f
+4 -2
View File
@@ -257,9 +257,11 @@ void strncpyWithEOS(char * szStringOut, const char * szStringIn, int nNumberOfCh
{
char *eos = "\n";
/*
if ((nNumberOfCharToCopy + (int)strlen(eos)) > nStringOutSize) {
return;
}
strcpy(szStringOut, szStringIn);
strcat(szStringOut, eos);
*/
strncpy(szStringOut, szStringIn, nStringOutSize);
/* strcat(szStringOut, eos); */
}