src/SDL_assert.c
changeset 11626 2eaf345a2a30
parent 11272 d60ede5a0c2e
child 11811 5d94cb6b24d3
equal deleted inserted replaced
11625:6a676d8b788f 11626:2eaf345a2a30
   276             fflush(stderr);
   276             fflush(stderr);
   277             if (fgets(buf, sizeof (buf), stdin) == NULL) {
   277             if (fgets(buf, sizeof (buf), stdin) == NULL) {
   278                 break;
   278                 break;
   279             }
   279             }
   280 
   280 
   281             if (SDL_strcmp(buf, "a") == 0) {
   281             if (SDL_strncmp(buf, "a", 1) == 0) {
   282                 state = SDL_ASSERTION_ABORT;
   282                 state = SDL_ASSERTION_ABORT;
   283                 break;
   283                 break;
   284             } else if (SDL_strcmp(buf, "b") == 0) {
   284             } else if (SDL_strncmp(buf, "b", 1) == 0) {
   285                 state = SDL_ASSERTION_BREAK;
   285                 state = SDL_ASSERTION_BREAK;
   286                 break;
   286                 break;
   287             } else if (SDL_strcmp(buf, "r") == 0) {
   287             } else if (SDL_strncmp(buf, "r", 1) == 0) {
   288                 state = SDL_ASSERTION_RETRY;
   288                 state = SDL_ASSERTION_RETRY;
   289                 break;
   289                 break;
   290             } else if (SDL_strcmp(buf, "i") == 0) {
   290             } else if (SDL_strncmp(buf, "i", 1) == 0) {
   291                 state = SDL_ASSERTION_IGNORE;
   291                 state = SDL_ASSERTION_IGNORE;
   292                 break;
   292                 break;
   293             } else if (SDL_strcmp(buf, "A") == 0) {
   293             } else if (SDL_strncmp(buf, "A", 1) == 0) {
   294                 state = SDL_ASSERTION_ALWAYS_IGNORE;
   294                 state = SDL_ASSERTION_ALWAYS_IGNORE;
   295                 break;
   295                 break;
   296             }
   296             }
   297         }
   297         }
   298 #endif /* HAVE_STDIO_H */
   298 #endif /* HAVE_STDIO_H */