bzr merge lp:~stratagus/stratagus/sourceforge
This commit is contained in:
commit
64e6b3830c
2 changed files with 6 additions and 4 deletions
src/stratagus
|
@ -49,6 +49,8 @@
|
|||
#include "util.h"
|
||||
#include "iolib.h"
|
||||
|
||||
#include <zlib.h>
|
||||
|
||||
/*----------------------------------------------------------------------------
|
||||
-- Defines
|
||||
----------------------------------------------------------------------------*/
|
||||
|
@ -455,7 +457,7 @@ long CFile::tell()
|
|||
/**
|
||||
** Find a file with its correct extension ("", ".gz" or ".bz2")
|
||||
**
|
||||
** @param file The string with the file path. Upon success, the string
|
||||
** @param file The string with the file path. Upon success, the string
|
||||
** is replaced by the full filename witht he correct extension.
|
||||
** @param filesize Size of the file buffer
|
||||
**
|
||||
|
@ -684,11 +686,11 @@ int ReadDataDirectory(const char *dirname, int (*filter)(char *, FileList *),
|
|||
|
||||
|
||||
|
||||
void FileWriter::printf(const char *format, ...)
|
||||
void FileWriter::printf(const char *format, ...)
|
||||
{
|
||||
// FIXME: hardcoded size
|
||||
char buf[1024];
|
||||
|
||||
|
||||
va_list ap;
|
||||
va_start(ap, format);
|
||||
buf[sizeof(buf) - 1] = '\0';
|
||||
|
|
|
@ -38,10 +38,10 @@
|
|||
|
||||
#include <map>
|
||||
#include <string>
|
||||
#include <cstdio>
|
||||
|
||||
#include "translate.h"
|
||||
#include "iolib.h"
|
||||
#include <cstdio>
|
||||
|
||||
/*----------------------------------------------------------------------------
|
||||
-- Variables
|
||||
|
|
Loading…
Add table
Reference in a new issue