Commit acf4925f authored by Michael Niedermayer's avatar Michael Niedermayer

tools/graph2dot: use larger data types than int for array/string sizes

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 59db9e69
...@@ -153,7 +153,7 @@ int main(int argc, char **argv) ...@@ -153,7 +153,7 @@ int main(int argc, char **argv)
/* read from infile and put it in a buffer */ /* read from infile and put it in a buffer */
{ {
unsigned int count = 0; int64_t count = 0;
struct line *line, *last_line, *first_line; struct line *line, *last_line, *first_line;
char *p; char *p;
last_line = first_line = av_malloc(sizeof(struct line)); last_line = first_line = av_malloc(sizeof(struct line));
...@@ -181,7 +181,7 @@ int main(int argc, char **argv) ...@@ -181,7 +181,7 @@ int main(int argc, char **argv)
} }
p = graph_string; p = graph_string;
for (line = first_line; line->next; line = line->next) { for (line = first_line; line->next; line = line->next) {
unsigned int l = strlen(line->data); size_t l = strlen(line->data);
memcpy(p, line->data, l); memcpy(p, line->data, l);
p += l; p += l;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment