comparison src/SDL_error.c @ 1847:845bcffc0dd8

Updated RPM spec file with License keyword
author Sam Lantinga <slouken@libsdl.org>
date Wed, 17 May 2006 06:09:27 +0000
parents e25445333ccf
children c121d94672cb a1b03ba2fcd0
comparison
equal deleted inserted replaced
1846:699eaff87cbb 1847:845bcffc0dd8
134 argi = 0; 134 argi = 0;
135 while ( *fmt && (maxlen > 0) ) { 135 while ( *fmt && (maxlen > 0) ) {
136 if ( *fmt == '%' ) { 136 if ( *fmt == '%' ) {
137 char tmp[32], *spot = tmp; 137 char tmp[32], *spot = tmp;
138 *spot++ = *fmt++; 138 *spot++ = *fmt++;
139 while ( *fmt == '.' || (*fmt >= '0' && *fmt <= '9') && spot < (tmp+SDL_arraysize(tmp)-2) ) { 139 while ( (*fmt == '.' || (*fmt >= '0' && *fmt <= '9')) && spot < (tmp+SDL_arraysize(tmp)-2) ) {
140 *spot++ = *fmt++; 140 *spot++ = *fmt++;
141 } 141 }
142 *spot++ = *fmt++; 142 *spot++ = *fmt++;
143 *spot++ = '\0'; 143 *spot++ = '\0';
144 switch (spot[-2]) { 144 switch (spot[-2]) {