Fixed buffer overflow vulnerability.

Using a static buffer for variable-sized input is not good practice, as I'm sure you know. Consider changing ```requiredProcessName``` to a dynamically allocated string.