diff options
author | Araq <rumpf_a@web.de> | 2011-05-14 21:44:22 +0200 |
---|---|---|
committer | Araq <rumpf_a@web.de> | 2011-05-14 21:44:22 +0200 |
commit | c7b3d828be1bbca81f3576875636ea571e595402 (patch) | |
tree | f7d959c511fb630abeb90394e39200f90d0b6c98 /lib/pure/scgi.nim | |
parent | c9aac521a00bc59bb16538de316579203c2a2dfb (diff) | |
download | Nim-c7b3d828be1bbca81f3576875636ea571e595402.tar.gz |
copy replaced by substr
Diffstat (limited to 'lib/pure/scgi.nim')
-rwxr-xr-x | lib/pure/scgi.nim | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/pure/scgi.nim b/lib/pure/scgi.nim index fa86cbaf2..3fdcba39e 100755 --- a/lib/pure/scgi.nim +++ b/lib/pure/scgi.nim @@ -1,7 +1,7 @@ # # # Nimrod's Runtime Library -# (c) Copyright 2010 Andreas Rumpf +# (c) Copyright 2011 Andreas Rumpf # # See the file "copying.txt", included in this # distribution, for details about the copyright. @@ -39,7 +39,7 @@ proc scgiError*(msg: string) {.noreturn.} = proc parseWord(inp: string, outp: var string, start: int): int = result = start while inp[result] != '\0': inc(result) - outp = copy(inp, start, result-1) + outp = substr(inp, start, result-1) proc parseHeaders(s: string, L: int): PStringTable = result = newStringTable() |