Commit f498e59b authored by Mark Drayton's avatar Mark Drayton

Fix "for loop initial declarations only in C99" compile error

parent d60861aa
...@@ -246,7 +246,8 @@ static int find_buildid(Elf *e, char *buildid) { ...@@ -246,7 +246,8 @@ static int find_buildid(Elf *e, char *buildid) {
char *buf = (char *)data->d_buf + 16; char *buf = (char *)data->d_buf + 16;
size_t length = data->d_size - 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]); 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