cmd/tests: Don't convert lines with DOS endings in convert_input_data.
This commit is contained in:
parent
29b57ca82d
commit
f00aafae85
|
@ -47,7 +47,8 @@ static const char* convert_input_data(const char *data, DWORD size, DWORD *new_s
|
||||||
for (i = 0; i < size; i++) {
|
for (i = 0; i < size; i++) {
|
||||||
switch (data[i]) {
|
switch (data[i]) {
|
||||||
case '\n':
|
case '\n':
|
||||||
*ptr++ = '\r';
|
if (data[i-1] != '\r')
|
||||||
|
*ptr++ = '\r';
|
||||||
*ptr++ = '\n';
|
*ptr++ = '\n';
|
||||||
break;
|
break;
|
||||||
case '@':
|
case '@':
|
||||||
|
|
Loading…
Reference in New Issue