src/SDL_error.c
changeset 1847 845bcffc0dd8
parent 1824 e25445333ccf
child 1895 c121d94672cb
child 4159 a1b03ba2fcd0
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]) {