Subversion Repositories Games.Chess Giants

Rev

Rev 14 | Rev 21 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 14 Rev 19
Line 95... Line 95...
95
 
95
 
96
         // strip spaces and unprintable characters from candidate email
96
         // strip spaces and unprintable characters from candidate email
97
         length = wcslen (candidate_email);
97
         length = wcslen (candidate_email);
98
         write_index = 0;
98
         write_index = 0;
99
         for (read_index = 0; read_index < length; read_index++)
99
         for (read_index = 0; read_index < length; read_index++)
100
            if (!iswspace (candidate_email[read_index]) && (read_index > write_index))
100
            if (!iswspace (candidate_email[read_index]))
101
            {
101
            {
102
               candidate_email[write_index] = candidate_email[read_index];
102
               candidate_email[write_index] = candidate_email[read_index];
103
               write_index++;
103
               write_index++;
104
            }
104
            }
105
         candidate_email[write_index] = 0; // ensure string is correctly terminated
105
         candidate_email[write_index] = 0; // ensure string is correctly terminated