fix writing null terminators in config file

This commit is contained in:
IntelOrca 2015-09-05 19:32:01 +01:00
parent 85181b5ed3
commit c3fbdf78c0
1 changed files with 1 additions and 1 deletions

View File

@ -294,7 +294,7 @@ static void rwopsprintf(SDL_RWops *file, const char *format, ...)
char buffer[64];
vsprintf(buffer, format, args);
SDL_RWwrite(file, buffer, strlen(buffer) + 1, 1);
SDL_RWwrite(file, buffer, strlen(buffer), 1);
va_end(args);
}