Commit 860c7b9a authored by Raphael Defosseux's avatar Raphael Defosseux

Merge remote-tracking branch 'origin/T-minor-typo-2018-w47' into develop_integration_2018_w47

parents af25b3da 3c9ad72f
...@@ -24,11 +24,11 @@ int new_unique_id(char *s, char *input_file) ...@@ -24,11 +24,11 @@ int new_unique_id(char *s, char *input_file)
if (unique_ids_size == unique_ids_maxsize) { if (unique_ids_size == unique_ids_maxsize) {
unique_ids_maxsize += 256; unique_ids_maxsize += 256;
unique_ids = realloc(unique_ids, unique_ids_maxsize * sizeof(char *)); unique_ids = realloc(unique_ids, unique_ids_maxsize * sizeof(char *));
if (unique_ids == NULL) { printf("erorr: out of memory\n"); abort(); } if (unique_ids == NULL) { printf("error: out of memory\n"); abort(); }
} }
unique_ids[unique_ids_size] = strdup(s); unique_ids[unique_ids_size] = strdup(s);
if (unique_ids[unique_ids_size] == NULL) if (unique_ids[unique_ids_size] == NULL)
{ printf("erorr: out of memory\n"); abort(); } { printf("error: out of memory\n"); abort(); }
unique_ids_size++; unique_ids_size++;
qsort(unique_ids, unique_ids_size, sizeof(char *), cmp); qsort(unique_ids, unique_ids_size, sizeof(char *), cmp);
return 1; return 1;
...@@ -44,7 +44,7 @@ void putname(int c) ...@@ -44,7 +44,7 @@ void putname(int c)
bufname_maxsize += 256; bufname_maxsize += 256;
bufname = realloc(bufname, bufname_maxsize); bufname = realloc(bufname, bufname_maxsize);
if (bufname == NULL) if (bufname == NULL)
{ printf("erorr: memory allocation error\n"); exit(1); } { printf("error: memory allocation error\n"); exit(1); }
} }
bufname[bufname_size] = c; bufname[bufname_size] = c;
bufname_size++; bufname_size++;
......
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