Declaring a variable on the stack like this with another variable as its size won't work on older compilers. I think you probably just want `char oid[GIT_OID_HEXSZ + 1];`. Then instead of using `oid_len` later on, you can just use `sizeof(oid)` which will be safe and pretty easy.