diff options
author | comex | 2015-03-23 23:10:47 -0400 |
---|---|---|
committer | comex | 2015-03-23 23:11:27 -0400 |
commit | bb7cf0b70095d4c4880f515800cce3785cd4966b (patch) | |
tree | 1d6a868c7b57ca18559000e8ddb5300c8c61abec /darwin-bootstrap | |
parent | Merge pull request #5 from parrotgeek1/master (diff) | |
download | substitute-bb7cf0b70095d4c4880f515800cce3785cd4966b.tar.gz |
Fix missing dereference, thanks to alexzielenski
Diffstat (limited to 'darwin-bootstrap')
-rw-r--r-- | darwin-bootstrap/bundle-loader.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/darwin-bootstrap/bundle-loader.c b/darwin-bootstrap/bundle-loader.c index d559da3..754bd5c 100644 --- a/darwin-bootstrap/bundle-loader.c +++ b/darwin-bootstrap/bundle-loader.c @@ -27,7 +27,7 @@ static bool pop(const void **buf, const void *end, *buf += sizeof(*op); *opc = op->opc; if ((size_t) (end - *buf) <= op->namelen || - ((const char *) buf)[op->namelen] != '\0') + ((const char *) *buf)[op->namelen] != '\0') return false; *name = *buf; *buf += op->namelen + 1; |