diff options
| author | Ray <[email protected]> | 2020-02-24 11:15:02 +0100 |
|---|---|---|
| committer | Ray <[email protected]> | 2020-02-24 11:15:02 +0100 |
| commit | a77273d8d80a113963a56076497c1c80f5b5e229 (patch) | |
| tree | f4baf596bd8001f655ba339da96a8d8c515108b5 /src/text.c | |
| parent | 310fd9b1471a94d83764caece418cbe451ba2af1 (diff) | |
| download | raylib-a77273d8d80a113963a56076497c1c80f5b5e229.tar.gz raylib-a77273d8d80a113963a56076497c1c80f5b5e229.zip | |
Make sure current text buffer is empty #1109
Diffstat (limited to 'src/text.c')
| -rw-r--r-- | src/text.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -1149,6 +1149,7 @@ const char *TextFormat(const char *text, ...) static int index = 0; char *currentBuffer = buffers[index]; + memset(currentBuffer, 0, MAX_TEXT_BUFFER_LENGTH); // Clear buffer before using va_list args; va_start(args, text); |
