>From 230f882f3b33045266a3775941af720e97013c4e Mon Sep 17 00:00:00 2001
From: Mohammed Khoory <mkhoory@eiast.ae>
Date: Fri, 6 Sep 2013 11:25:48 +0900
Subject: [PATCH] Colon in module path fix Fixed a bug that occurs if loading
 a module located in path with a colon in it

---
 rtl-obj.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/rtl-obj.c b/rtl-obj.c
index f04925d..23ed582 100644
--- a/rtl-obj.c
+++ b/rtl-obj.c
@@ -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);
-- 
1.8.0.msysgit.0

