This problem has been corrected on most machines , but you should not rely on correct behavior . it is best always to assume your code is running in the most hostile environment possible , just in case someday it does . various implementations of the getopt family of calls , as well as the getpass function , are susceptible to overflows of internal static buffers as well