This is read into a string; no need to send the null terminator.

This commit is contained in:
Glenn Maynard
2006-02-11 05:33:33 +00:00
parent fbe91a6c7e
commit b1f072479a
+2 -2
View File
@@ -200,13 +200,13 @@ void RunChild()
/* 2. Write info. */
const char *p = RageLog::GetInfo();
int iSize = strlen( p )+1;
int iSize = strlen( p );
WriteToChild( hToStdin, &iSize, sizeof(iSize) );
WriteToChild( hToStdin, p, iSize );
/* 3. Write AdditionalLog. */
p = RageLog::GetAdditionalLog();
iSize = strlen( p )+1;
iSize = strlen( p );
WriteToChild( hToStdin, &iSize, sizeof(iSize) );
WriteToChild( hToStdin, p, iSize );