Skip to content

Commit

Permalink
*** empty log message ***
Browse files Browse the repository at this point in the history
  • Loading branch information
slouken committed Mar 23, 2006
1 parent 2c53608 commit 4523e71
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions src/video/wscons/SDL_wsconsevents.c
Expand Up @@ -121,8 +121,7 @@ static void updateKeyboard(_THIS)
unsigned char c = buf[i] & 0x7f;
if (c == 224) // special key prefix -- what should we do with it?
continue;
int release = (buf[i] & 0x80) != 0;
posted += SDL_PrivateKeyboard(release ? SDL_RELEASED : SDL_PRESSED,
posted += SDL_PrivateKeyboard((buf[i] & 0x80) ? SDL_RELEASED : SDL_PRESSED,
TranslateKey(c, &keysym));
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/video/wscons/SDL_wsconsvideo.c
Expand Up @@ -70,10 +70,10 @@ static void WSCONS_UpdateRects(_THIS, int numrects, SDL_Rect *rects);
void WSCONS_ReportError(char *fmt, ...)
{
char message[200];
va_list vaArgs;

message[199] = '\0';

va_list vaArgs;
va_start(vaArgs, fmt);
vsnprintf(message, 199, fmt, vaArgs);
va_end(vaArgs);
Expand Down

0 comments on commit 4523e71

Please sign in to comment.