~ubuntu-branches/ubuntu/vivid/libsdl2/vivid

« back to all changes in this revision

Viewing changes to src/video/windows/SDL_windowskeyboard.c

  • Committer: Package Import Robot
  • Author(s): Manuel A. Fernandez Montecelo, Felix Geyer
  • Date: 2013-12-28 12:31:19 UTC
  • mfrom: (1.1.3)
  • Revision ID: package-import@ubuntu.com-20131228123119-e0k27gckmnzskfgb
Tags: 2.0.1+dfsg1-1
* New upstream release (Closes: #728974)
  - Remove patch applied upstream:
    bug-723797-false_positives_in_mouse_wheel_code.patch
* Bump Standards-Version to 3.9.5, no changes needed.

[ Felix Geyer ]
* Import upstream gpg key for uscan to verify the orig tarball.

Show diffs side-by-side

added added

removed removed

Lines of Context:
758
758
                if (LANG() == LANG_CHS && IME_GetId(videodata, 0)) {
759
759
                    const UINT maxcandchar = 18;
760
760
                    UINT i = 0;
761
 
                    UINT cchars = 0;
 
761
                    size_t cchars = 0;
762
762
 
763
763
                    for (; i < videodata->ime_candcount; ++i) {
764
 
                        UINT len = SDL_wcslen((LPWSTR)((DWORD_PTR)cand_list + cand_list->dwOffset[i])) + 1;
 
764
                        size_t len = SDL_wcslen((LPWSTR)((DWORD_PTR)cand_list + cand_list->dwOffset[i])) + 1;
765
765
                        if (len + cchars > maxcandchar) {
766
766
                            if (i > cand_list->dwSelection)
767
767
                                break;