Commit 02884a02 authored by 4ast's avatar 4ast Committed by GitHub

Merge pull request #996 from markdrayton/fix-find-buildid

Fix "for loop initial declarations only in C99" compile error
parents b0a982bf f498e59b
......@@ -246,7 +246,8 @@ static int find_buildid(Elf *e, char *buildid) {
char *buf = (char *)data->d_buf + 16;
size_t length = data->d_size - 16;
for (size_t i = 0; i < length; ++i) {
size_t i = 0;
for (i = 0; i < length; ++i) {
sprintf(buildid + (i * 2), "%02hhx", buf[i]);
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment