src/SDL_error.c
changeset 1612 97d0966f4bf7
parent 1402 d910939febfa
child 1659 14717b52abc0
child 1818 7995cc87b777
--- a/src/SDL_error.c	Fri Mar 24 05:11:51 2006 +0000
+++ b/src/SDL_error.c	Fri Mar 24 06:10:24 2006 +0000
@@ -90,11 +90,11 @@
 				break;
 			    case 's':
 				{
-				  int index = error->argc;
-				  char *str = va_arg(ap, char *);
+				  int i = error->argc;
+				  const char *str = va_arg(ap, const char *);
 				  if (str == NULL)
 				      str = "(null)";
-				  SDL_strlcpy((char *)error->args[index].buf, str, ERR_MAX_STRLEN);
+				  SDL_strlcpy((char *)error->args[i].buf, str, ERR_MAX_STRLEN);
 				  error->argc++;
 				}
 				break;