+ memset(string, 0, 129); + memcpy(string, p+1, shutdown_comm_length); + safeputs(string);
Please don't copy numbers like that. If this is a string, why not use string functions that gaurantee truncation and truncation detection...
+ memset(string, 0, 129); + memcpy(string, p+1, shutdown_comm_length); + safeputs(string);
Please don't copy numbers like that. If this is a string, why not use string functions that gaurantee truncation and truncation detection...