diff options
author | Alessio Treglia <quadrispro@ubuntu.com> | 2010-05-02 22:31:31 +0200 |
---|---|---|
committer | Alessio Treglia <quadrispro@ubuntu.com> | 2010-05-02 22:31:31 +0200 |
commit | eb1f6106a36c100ab25cab7f29045e16f6e967fb (patch) | |
tree | e66f81d41fe3107a12b36d56e6aa5b13ea2a3f1a /xen.c | |
parent | 08d24d7a5682e59434c3da226fb1f2546c0ebd86 (diff) |
Imported Upstream version 11.5
Diffstat (limited to 'xen.c')
-rw-r--r-- | xen.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -1529,16 +1529,16 @@ void xen_s7_define_constant(s7_scheme *sc, const char *name, s7_pointer value, c if (constant_size == 0) { constant_size = 128; - constant_names = (const char **)calloc(constant_size, sizeof(char *)); - constant_helps = (const char **)calloc(constant_size, sizeof(char *)); + constant_names = (const char **)calloc(constant_size, sizeof(const char *)); + constant_helps = (const char **)calloc(constant_size, sizeof(const char *)); } else { int i; i = constant_size; constant_size += 128; - constant_names = (const char **)realloc(constant_names, constant_size * sizeof(char *)); - constant_helps = (const char **)realloc(constant_helps, constant_size * sizeof(char *)); + constant_names = (const char **)realloc(constant_names, constant_size * sizeof(const char *)); + constant_helps = (const char **)realloc(constant_helps, constant_size * sizeof(const char *)); for (; i < constant_size; i++) { constant_names[i] = NULL; |