nmsprintBuffer doesn't need to be a global.

modified:   src/nms.h
This commit is contained in:
Brian Barto 2016-04-15 17:39:58 -04:00
parent 00dd424e9b
commit 3f0c272f44
1 changed files with 2 additions and 1 deletions

View File

@ -32,7 +32,6 @@ struct winpos {
};
// Globals
static char nmsprintBuffer[10000];
static char *display = NULL;
// Function prototypes
@ -52,6 +51,8 @@ char getMaskChar(void);
* const char *format - printf-style format string
*/
void nmsprintf(const char *format, ...) {
char nmsprintBuffer[10000];
va_list argp;
va_start(argp, format);
vsprintf(nmsprintBuffer, format, argp);