Browse Source

Ensure each name in proc_names can fit an item_string [msvc /analyze].

master
Reece H. Dunn 7 years ago
parent
commit
c49164334b
1 changed files with 3 additions and 2 deletions
  1. 3
    2
      src/libespeak-ng/compiledata.c

+ 3
- 2
src/libespeak-ng/compiledata.c View File

#include "spect.h" #include "spect.h"
#include "translate.h" #include "translate.h"


#define N_ITEM_STRING 256

typedef struct { typedef struct {
unsigned int value; unsigned int value;
char *name; char *name;
#define N_PROCS 50 #define N_PROCS 50
int n_procs; int n_procs;
int proc_addr[N_PROCS]; int proc_addr[N_PROCS];
char proc_names[40][N_PROCS];
char proc_names[N_ITEM_STRING+1][N_PROCS];


#define MAX_PROG_BUF 2000 #define MAX_PROG_BUF 2000
USHORT *prog_out; USHORT *prog_out;


int item_type; int item_type;
int item_terminator; int item_terminator;
#define N_ITEM_STRING 256
char item_string[N_ITEM_STRING]; char item_string[N_ITEM_STRING];


static int ref_sorter(char **a, char **b) static int ref_sorter(char **a, char **b)

Loading…
Cancel
Save