diff options
author | Peng Fan <van.freenix@gmail.com> | 2014-07-05 15:13:51 +0800 |
---|---|---|
committer | Chris Johns <chrisj@rtems.org> | 2014-07-12 10:37:16 +1000 |
commit | 5a3239d6e9fdb2f9d62d43cf65ab6706cf69338a (patch) | |
tree | 5e6c571b2e7e055b9b7604aa1df1296c92a6d20e | |
parent | 3baa6851dea54ae4950a3f56ce73b0a7721e9ea6 (diff) |
Fix colon problem
When loading an elf/rap object file from an archive file, error occurs
with msg : file not found. This patch fix it.
-rw-r--r-- | rtl-obj.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -130,7 +130,7 @@ rtems_rtl_obj_parse_name (rtems_rtl_obj_t* obj, const char* name) */ end = name + strlen (name); colon = strrchr (name, ':'); - if (colon == NULL || colon < strrchr(name, '/')); + if (colon == NULL || colon < strrchr(name, '/')) colon = end; oname = rtems_rtl_alloc_new (RTEMS_RTL_ALLOC_OBJECT, colon - name + 1, true); |