Don't go beyond the provided string when parsing the `\' character.

PR:		bin/99985
Submitted by:	Nate Eldredge
MFC after:	3 days
This commit is contained in:
Ruslan Ermilov 2006-10-09 19:37:26 +00:00
parent a29721a8cb
commit 93f4bf61d4

View File

@ -260,8 +260,10 @@ brk_string(ArgArray *aa, const char str[], Boolean expand)
}
} else {
*arg++ = str[0];
++str;
*arg++ = str[0];
if (str[1] != '\0') {
++str;
*arg++ = str[0];
}
}
break;
default: