projects
/
fw
/
sdcc
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
* support/regression/collate-results.py: fixed output in case of a valdiag error
[fw/sdcc]
/
as
/
mcs51
/
lklibr.c
diff --git
a/as/mcs51/lklibr.c
b/as/mcs51/lklibr.c
index c08b8580d22c4e46274831c27c04088a2b5e3144..bb7218f886a8bf56fd348e5f9b3525bba1bd8101 100644
(file)
--- a/
as/mcs51/lklibr.c
+++ b/
as/mcs51/lklibr.c
@@
-267,7
+267,7
@@
int addfile(char * path, char * libfil)
That way putting 'path' and 'libfil' together will result into the original filepath
as contained in 'str'.*/
int j;
- path = (char *) new (strlen(str));
+ path = (char *) new (strlen(str)
+ 1
);
strcpy(path, str);
for(j=strlen(path)-1; j>=0; j--)
{