diff options
-rw-r--r-- | .gitignore | 3 | ||||
-rw-r--r-- | src/raptor_uri.c | 2 |
2 files changed, 4 insertions, 1 deletions
@@ -2,6 +2,8 @@ *.log *~ .DS_Store +.covsubmit +.covtoken .dirstamp .gdb_history .gdbinit @@ -21,6 +23,7 @@ config.cache config.log config.status configure +cov-int gtk-doc.make libtool not-used diff --git a/src/raptor_uri.c b/src/raptor_uri.c index 7fd6c075..53768e72 100644 --- a/src/raptor_uri.c +++ b/src/raptor_uri.c @@ -765,7 +765,7 @@ raptor_uri_counted_filename_to_uri_string(const char *filename, if(!buffer) goto path_done; - memcpy(buffer, "file://", RAPTOR_LEN_FILE_CSS); + memcpy(buffer, "file://", RAPTOR_LEN_FILE_CSS + 1); /* copy NUL */ from = filename; to = (char*)(buffer + RAPTOR_LEN_FILE_CSS); fl = filename_len; |