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

// control, bit 0: not the first letter of a word // control, bit 0: not the first letter of a word


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



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

int ix; int ix;
espeak_VOICE voice_selector; espeak_VOICE voice_selector;
char *variant_name; char *variant_name;
static char buf[60];
char buf[60];


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


int ix; int ix;
espeak_VOICE voice_selector; espeak_VOICE voice_selector;
char *variant_name; char *variant_name;
static char buf[60];
char buf[60];


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



Loading…
Cancel
Save