summary refs log tree commit diff stats
path: root/lib/system/debugger.nim
diff options
context:
space:
mode:
authorJacek Sieka <arnetheduck@gmail.com>2016-06-05 20:16:26 +0800
committerJacek Sieka <arnetheduck@gmail.com>2016-06-05 20:16:26 +0800
commitfe2b39f0074e732b24d6993dd6a0b0947bd511e2 (patch)
treee73eb450d9530f692516c63aac7d7c1d596c6287 /lib/system/debugger.nim
parent64b0485207f428ce3941061b1c165ec8004b2c96 (diff)
downloadNim-fe2b39f0074e732b24d6993dd6a0b0947bd511e2.tar.gz
remove system/ansi_c include from os
Diffstat (limited to 'lib/system/debugger.nim')
-rw-r--r--lib/system/debugger.nim4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/system/debugger.nim b/lib/system/debugger.nim
index b18c61755..55f14e982 100644
--- a/lib/system/debugger.nim
+++ b/lib/system/debugger.nim
@@ -108,8 +108,8 @@ proc fileMatches(c, bp: cstring): bool =
   # and the character for the suffix does not exist or
   # is one of: \  /  :
   # depending on the OS case does not matter!
-  var blen: int = c_strlen(bp)
-  var clen: int = c_strlen(c)
+  var blen: int = bp.len
+  var clen: int = c.len
   if blen > clen: return false
   # check for \ /  :
   if clen-blen-1 >= 0 and c[clen-blen-1] notin {'\\', '/', ':'}: