Browse Source

Make some buffers non-static

These don't actually need to survive function exit.
master
Samuel Thibault 3 years ago
parent
commit
7e608a3273
2 changed files with 3 additions and 3 deletions
  1. 1
    1
      src/libespeak-ng/numbers.c
  2. 2
    2
      src/libespeak-ng/voices.c

+ 1
- 1
src/libespeak-ng/numbers.c View File

@@ -479,7 +479,7 @@ void LookupLetter(Translator *tr, unsigned int letter, int next_byte, char *ph_b
// control, bit 0: not the first letter of a word

int len;
static char single_letter[10] = { 0, 0 };
char single_letter[10] = { 0, 0 };
unsigned int dict_flags[2];
char ph_buf3[40];


+ 2
- 2
src/libespeak-ng/voices.c View File

@@ -1519,7 +1519,7 @@ ESPEAK_NG_API espeak_ng_STATUS espeak_ng_SetVoiceByFile(const char *filename)
int ix;
espeak_VOICE voice_selector;
char *variant_name;
static char buf[60];
char buf[60];

strncpy0(buf, filename, sizeof(buf));

@@ -1556,7 +1556,7 @@ ESPEAK_NG_API espeak_ng_STATUS espeak_ng_SetVoiceByName(const char *name)
int ix;
espeak_VOICE voice_selector;
char *variant_name;
static char buf[60];
char buf[60];

strncpy0(buf, name, sizeof(buf));


Loading…
Cancel
Save