nmsprintBuffer doesn't need to be a global.
modified: src/nms.h
This commit is contained in:
parent
00dd424e9b
commit
3f0c272f44
@ -32,7 +32,6 @@ struct winpos {
|
|||||||
};
|
};
|
||||||
|
|
||||||
// Globals
|
// Globals
|
||||||
static char nmsprintBuffer[10000];
|
|
||||||
static char *display = NULL;
|
static char *display = NULL;
|
||||||
|
|
||||||
// Function prototypes
|
// Function prototypes
|
||||||
@ -52,6 +51,8 @@ char getMaskChar(void);
|
|||||||
* const char *format - printf-style format string
|
* const char *format - printf-style format string
|
||||||
*/
|
*/
|
||||||
void nmsprintf(const char *format, ...) {
|
void nmsprintf(const char *format, ...) {
|
||||||
|
char nmsprintBuffer[10000];
|
||||||
|
|
||||||
va_list argp;
|
va_list argp;
|
||||||
va_start(argp, format);
|
va_start(argp, format);
|
||||||
vsprintf(nmsprintBuffer, format, argp);
|
vsprintf(nmsprintBuffer, format, argp);
|
||||||
|
Loading…
Reference in New Issue
Block a user