/simpletypesystem/trunk

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/simpletypesystem/trunk

« back to all changes in this revision

Viewing changes to libssts/utils.c

  • Committer: Gustav Hartvigsson
  • Date: 2015-10-25 21:13:05 UTC
  • Revision ID: gustav.hartvigsson@gmail.com-20151025211305-47oc3820ohtye8rr
* Made impremented s_linked_list_free ()

Show diffs side-by-side

added added

removed removed

Lines of Context:
38
38
  assert (s_len > 0);
39
39
  schar * ret_val = malloc (s_len + 1);
40
40
  strcpy (ret_val, s);
41
 
  ret_val[s_len + 1] = '\0';
 
41
  ret_val[s_len] = '\0';
42
42
  return ret_val;
43
43
}
44
44