Update MethodScanner.c

Patched the code to take a user specified length due to my inability to think of a way to calculate the length of a buffer with null bytes in it.