mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-03-03 07:29:23 +00:00
Allow optional double quotes in dd parameters on macOS (#621)
This commit is contained in:
parent
3f49889841
commit
418bcb39af
1 changed files with 2 additions and 2 deletions
|
@ -160,8 +160,8 @@ void GetMachoPayload(const char *image, size_t imagesize, int *out_offset,
|
|||
script += 6;
|
||||
DCHECK_EQ(REG_OK, regcomp(&rx,
|
||||
"bs=([ [:digit:]]+) "
|
||||
"skip=\"([ [:digit:]]+)\" "
|
||||
"count=\"([ [:digit:]]+)\"",
|
||||
"skip=\"?([ [:digit:]]+)\"? "
|
||||
"count=\"?([ [:digit:]]+)\"?",
|
||||
REG_EXTENDED));
|
||||
rc = regexec(&rx, script, 4, rm, 0);
|
||||
if (rc != REG_OK) {
|
||||
|
|
Loading…
Add table
Reference in a new issue