File diff r22199:6a985bf7b172 → r22200:a9da99055183
src/strgen/strgen_base.cpp
Show inline comments
 
@@ -375,13 +375,13 @@ char *ParseWord(char **buf)
 
/* Forward declaration */
 
static int TranslateArgumentIdx(int arg, int offset = 0);
 

	
 
static void EmitWordList(Buffer *buffer, const char * const *words, uint nw)
 
{
 
	buffer->AppendByte(nw);
 
	for (uint i = 0; i < nw; i++) buffer->AppendByte((uint)strlen(words[i]) + 1);
 
	for (uint i = 0; i < nw; i++) buffer->AppendByte((byte)strlen(words[i]) + 1);
 
	for (uint i = 0; i < nw; i++) {
 
		for (uint j = 0; words[i][j] != '\0'; j++) buffer->AppendByte(words[i][j]);
 
		buffer->AppendByte(0);
 
	}
 
}