mapster32: fixes crash in linux

git-svn-id: https://svn.eduke32.com/eduke32@1372 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
helixhorned 2009-05-08 23:13:12 +00:00
parent 0f95655e27
commit ca81a4e40b
3 changed files with 8 additions and 8 deletions

View file

@ -304,7 +304,7 @@ ifeq ($(PRETTY_OUTPUT),1)
printf "\033[K\033[0;35mChanging dir to \033[1;35m$(CURDIR)/$(EROOT)\033[0;35m \033[0m\n"
endif
$(MAKE) -C $(EROOT)/ "OBJ=../$(EOBJ)" \
SUPERBUILD=$(SUPERBUILD) POLYMOST=$(POLYMOST) \
SUPERBUILD=$(SUPERBUILD) POLYMOST=$(POLYMOST) DEBUGANYWAY=$(DEBUGANYWAY)\
USE_OPENGL=$(USE_OPENGL) BUILD32_ON_64=$(BUILD32_ON_64) \
NOASM=$(NOASM) RELEASE=$(RELEASE) OPTLEVEL=$(OPTLEVEL) RANCID_NETWORKING=$(RANCID_NETWORKING) $@
ifeq ($(PRETTY_OUTPUT),1)

View file

@ -98,7 +98,7 @@ void _printmessage16(const char *fmt, ...);
#define printmessage16(fmt, ...) lastpm16time = totalclock, _printmessage16(fmt, ## __VA_ARGS__)
extern char lastpm16buf[60];
extern char lastpm16buf[156];
void getpoint(int32_t searchxe, int32_t searchye, int32_t *x, int32_t *y);
int32_t getpointhighlight(int32_t xplc, int32_t yplc, int32_t point);

View file

@ -177,7 +177,7 @@ int32_t pk_turnaccel=16;
int32_t pk_turndecel=12;
int32_t pk_uedaccel=3;
char lastpm16buf[60];
char lastpm16buf[156];
char changechar(char dachar, int32_t dadir, char smooshyalign, char boundcheck);
int32_t adjustmark(int32_t *xplc, int32_t *yplc, int16_t danumwalls);
@ -6279,16 +6279,16 @@ void keytimerstuff(void)
void _printmessage16(const char *fmt, ...)
{
int32_t i, ybase;
char snotbuf[100];
char tmpstr[104];
char snotbuf[156];
char tmpstr[160];
va_list va;
va_start(va, fmt);
Bvsnprintf(tmpstr, 104, fmt, va);
Bvsnprintf(tmpstr, 156, fmt, va);
va_end(va);
i = 0;
while ((tmpstr[i] != 0) && (i < 94))
while ((tmpstr[i] != 0) && (i < 146))
{
snotbuf[i] = tmpstr[i];
i++;
@ -6585,4 +6585,4 @@ void test_map(int32_t mode)
else
printmessage16("Position must be in valid player space to test map!");
}
}