Skip to content

Commit

Permalink
qcommon: fixed too small message buffer by doubling MAXPRINTMSG and r…
Browse files Browse the repository at this point in the history
…emoving duplicate definitions
  • Loading branch information
tobydox committed Sep 16, 2014
1 parent fa5904c commit 8deb80a
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 5 deletions.
1 change: 0 additions & 1 deletion src/client/cl_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -2240,7 +2240,6 @@ CL_RefPrintf
DLL glue
================
*/
#define MAXPRINTMSG 4096
void QDECL CL_RefPrintf( int print_level, const char *fmt, ... ) {
va_list argptr;
char msg[MAXPRINTMSG];
Expand Down
2 changes: 0 additions & 2 deletions src/qcommon/common.c
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,6 @@ If you have questions concerning this license or the applicable additional terms
#include <setjmp.h>
#include <stdint.h>

#define MAXPRINTMSG 4096

#define MAX_NUM_ARGVS 50


Expand Down
1 change: 0 additions & 1 deletion src/qcommon/files.c
Original file line number Diff line number Diff line change
Expand Up @@ -1514,7 +1514,6 @@ int FS_Write( const void *buffer, int len, fileHandle_t h ) {
return len;
}

#define MAXPRINTMSG 4096
void QDECL FS_Printf( fileHandle_t h, const char *fmt, ... ) {
va_list argptr;
char msg[MAXPRINTMSG];
Expand Down
2 changes: 1 addition & 1 deletion src/qcommon/qcommon.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ If you have questions concerning this license or the applicable additional terms

#include "../qcommon/cm_public.h"

#define MAXPRINTMSG 4096
#define MAXPRINTMSG 8192

//============================================================================

Expand Down

0 comments on commit 8deb80a

Please sign in to comment.