diff options
Diffstat (limited to 'rtl-obj.c')
-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); |