summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDave Beckett <dave@dajobe.org>2020-10-06 19:58:32 -0700
committerDave Beckett <dave@dajobe.org>2020-10-06 19:58:32 -0700
commit6c0ec840784e52b80fca42cf995732dd6c6a303a (patch)
tree94e7b7b3b33a8ec7e47a92592aab0e9593d70d41
parent00336f058da640e6df29b2c934a48275a58218a1 (diff)
downloadraptor-6c0ec840784e52b80fca42cf995732dd6c6a303a.tar.gz
Use RAPTOR_LEN_FILE_CSS
-rw-r--r--src/raptor_uri.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/raptor_uri.c b/src/raptor_uri.c
index d8b017fa..7fd6c075 100644
--- a/src/raptor_uri.c
+++ b/src/raptor_uri.c
@@ -765,9 +765,9 @@ raptor_uri_counted_filename_to_uri_string(const char *filename,
if(!buffer)
goto path_done;
- memcpy(buffer, "file://", 7);
+ memcpy(buffer, "file://", RAPTOR_LEN_FILE_CSS);
from = filename;
- to = (char*)(buffer+7);
+ to = (char*)(buffer + RAPTOR_LEN_FILE_CSS);
fl = filename_len;
#ifdef WIN32
if(*from == '\\' && from[1] == '\\') {