From 411797b9a53d3865193bf4f45889c100ea4bc895 Mon Sep 17 00:00:00 2001 From: Martin Miller Date: Tue, 28 Mar 2017 16:27:34 -0500 Subject: fix lineparse with typecaset --- src/main.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/main.cpp b/src/main.cpp index f4594fc..b1b1a5d 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -232,8 +232,8 @@ parseLine(char *line, message *data) data->msg_type = IMG; char *lfn; lfn = strsep(&line, ","); - sscanf(lfn, "%s", &data->image_names); - sscanf(line, "%s", &data->image_names[1]); + sscanf(lfn, "%s", (char *) &data->image_names); + sscanf(line, "%s", (char *) &data->image_names[1]); } else if (!strcmp(msg_type,"inscovs")) { double pos[9]; double att[9]; -- cgit v1.1