Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

Replaced strncmp for SDL_VIDEODRIVER test with strcasecmp

  • Loading branch information
slouken committed Oct 1, 2006
1 parent dfe494b commit a3f68ffeb991e4df7f5f9d040829443ab9f7256f
Showing with 5 additions and 2 deletions.
  1. +1 −2 src/video/SDL_video.c
  2. +4 −0 src/video/x11/SDL_x11events.c
@@ -198,8 +198,7 @@ SDL_VideoInit(const char *driver_name, Uint32 flags)
}
if (driver_name != NULL) {
for (i = 0; bootstrap[i]; ++i) {
if (SDL_strncmp(bootstrap[i]->name, driver_name,
SDL_strlen(bootstrap[i]->name)) == 0) {
if (SDL_strcasecmp(bootstrap[i]->name, driver_name) == 0) {
if (bootstrap[i]->available()) {
video = bootstrap[i]->create(index);
}
@@ -21,6 +21,10 @@
*/
#include "SDL_config.h"

#include <sys/types.h>
#include <sys/time.h>
#include <unistd.h>

#include "SDL_syswm.h"
#include "SDL_x11video.h"
#include "../../events/SDL_events_c.h"

0 comments on commit a3f68ff

Please sign in to comment.