aboutsummaryrefslogtreecommitdiff
path: root/darwin-bootstrap/bundle-loader.c
diff options
context:
space:
mode:
authorcomex2015-03-23 23:10:47 -0400
committercomex2015-03-23 23:11:27 -0400
commitbb7cf0b70095d4c4880f515800cce3785cd4966b (patch)
tree1d6a868c7b57ca18559000e8ddb5300c8c61abec /darwin-bootstrap/bundle-loader.c
parentMerge pull request #5 from parrotgeek1/master (diff)
downloadsubstitute-bb7cf0b70095d4c4880f515800cce3785cd4966b.tar.gz
Fix missing dereference, thanks to alexzielenski
Diffstat (limited to 'darwin-bootstrap/bundle-loader.c')
-rw-r--r--darwin-bootstrap/bundle-loader.c2
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;