i can't fix this heap-overflow

前端 未结 0 1201
无人及你
无人及你 2020-12-09 07:05

I\'m trying to take as an input a string of unknown size.

char *command_input() {
    char *string_input = (char *)malloc(sizeof(char));
    if (string_input          


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题