summaryrefslogtreecommitdiffstats
path: root/src/libgcc/libgcc.h
diff options
context:
space:
mode:
authorMichael Brown2010-11-23 01:18:11 +0100
committerMichael Brown2010-11-23 01:18:11 +0100
commit66679fe7dff6e71d333e41a3bfd9f351f537678c (patch)
treebcf6a9bfacef113ef507cc8e4dbfb008a230b39e /src/libgcc/libgcc.h
parent[cmdline] Fix multi-layer variable expansion (diff)
downloadipxe-66679fe7dff6e71d333e41a3bfd9f351f537678c.tar.gz
ipxe-66679fe7dff6e71d333e41a3bfd9f351f537678c.tar.xz
ipxe-66679fe7dff6e71d333e41a3bfd9f351f537678c.zip
[cmdline] Fix multi-layer variable expansion (again)
Expansion of the (admittedly perverse) "aaa}bbb${ccc" will currently fail because expand_command() does not check that the closing "}" occurs later than the opening "${". Fix by ensuring that the most recent opening "${" is used to match against the first *subsequent* closing "}". Total cost of this change: -12 bytes, bringing the overall cost of this feature to -4 bytes. Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/libgcc/libgcc.h')
0 files changed, 0 insertions, 0 deletions