1
0
mirror of git://projects.qi-hardware.com/fped.git synced 2025-04-21 12:27:27 +03:00

- fixed stupid realloc(..., len) error

- rearranged input area and added vector component edit capability



git-svn-id: http://svn.openmoko.org/trunk/eda/fped@5381 99fdad57-331a-0410-800a-d7fa5415bdb3
This commit is contained in:
werner
2009-08-04 00:23:10 +00:00
parent 0ff7a6a3ab
commit 7674be9b10
7 changed files with 157 additions and 93 deletions

2
expr.c
View File

@@ -365,7 +365,7 @@ char *expand(const char *name, const struct frame *frame)
value_len = snprintf(num_buf, sizeof(num_buf), "%lg%s",
value.n, str_unit(value));
len += value_len;
buf = realloc(buf, len);
buf = realloc(buf, len+1);
if (!buf)
abort();
strcpy(buf+i, num_buf);