aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2021-09-07 16:46:31 +0200
committerThomas White <taw@physics.org>2021-09-07 16:46:31 +0200
commit10215cf55329c958edb919ac52043940fb22374c (patch)
tree101bcd200c2cf8c2c8017bc7debed8d9c23cc39c /src
parent3f109ddddb323448854e70d914a7649148e0dcf6 (diff)
add_stream: Fix data type for malloc size
Diffstat (limited to 'src')
-rw-r--r--src/gui_project.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/gui_project.c b/src/gui_project.c
index d1af3583..a12f5ad8 100644
--- a/src/gui_project.c
+++ b/src/gui_project.c
@@ -680,8 +680,7 @@ static char **add_stream(char *new_stream,
int *pn_streams)
{
int i = *pn_streams;
- char **new_streams = realloc(streams,
- (i+1)*sizeof(struct gui_indexing_result));
+ char **new_streams = realloc(streams, (i+1)*sizeof(char *));
if ( new_streams == NULL ) return streams;
new_streams[i] = new_stream;