diff options
author | Mohammed Khoory <mkhoory@eiast.ae> | 2013-09-06 11:25:48 +0900 |
---|---|---|
committer | Chris Johns <chrisj@rtems.org> | 2013-09-07 12:11:34 +1000 |
commit | 186bc96fa2bd37582f5c8296ad0bad6df01683dc (patch) | |
tree | d849dfd0d50650076ecad1d9773f58e7f6e47e4d | |
parent | 0048c847b0ae5df3f06e52bb8cb8f58196ca33ca (diff) |
Colon in module path fix Fixed a bug that occurs if loading a module located in path with a colon in it
-rw-r--r-- | rtl-obj.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -129,8 +129,8 @@ rtems_rtl_obj_parse_name (rtems_rtl_obj_t* obj, const char* name) * archive contains an offset. */ end = name + strlen (name); - colon = strchr (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); |