Rev 161 | Rev 171 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 161 | Rev 162 | ||
---|---|---|---|
Line 187... | Line 187... | ||
187 | smilies = (smiley_t *) SAFE_realloc (smilies, smiley_count, smiley_count + 1, sizeof (smiley_t), false); |
187 | smilies = (smiley_t *) SAFE_realloc (smilies, smiley_count, smiley_count + 1, sizeof (smiley_t), false); |
188 | 188 | ||
189 | smiley = &smilies[smiley_count]; // quick access to smiley |
189 | smiley = &smilies[smiley_count]; // quick access to smiley |
190 | 190 | ||
191 | // read the smiley name and enclose it between a leading and trailing space |
191 | // read the smiley name and enclose it between a leading and trailing space |
192 |
|
192 | wcscpy_s (smiley->name, WCHAR_SIZEOF (smiley->name), smiley_name); |
- | 193 | smiley->name[0] = L' '; // turn the first quote into a space |
|
- | 194 | smiley->name[wcslen (smiley->name) - 1] = L' '; // turn the last quote into a space |
|
193 | 195 | ||
194 | // now read the smiley's corresponding picture file |
196 | // now read the smiley's corresponding picture file |
195 | READ_WIDESTRING (smiley->filename, inifile, L"smilies", smiley_name, L"smile.txt"); |
197 | READ_WIDESTRING (smiley->filename, inifile, L"smilies", smiley_name, L"smile.txt"); |
196 | 198 | ||
197 | // is this filename the same as another smiley we know already ? |
199 | // is this filename the same as another smiley we know already ? |