On 04/10/2013 12:01 PM, MORITA Kazutaka wrote: > + ret = fgets(input, sizeof(input), stdin); > + if (ret != NULL && strncasecmp(input, "yes", 3) != 0) Seems that this can't handle ret == NULL case. If fgets return NULL, we'll wrongly proceed. Thanks, Yuan