external/redland: Missing NUL

Change-Id: I388d8a37a0b7f95f21ccbbe04144f39c0fff533f
This commit is contained in:
Stephan Bergmann
2014-05-09 17:08:09 +02:00
parent 2c64e08aa3
commit 90a30ddf68
2 changed files with 11 additions and 0 deletions

View File

@@ -23,6 +23,7 @@ $(eval $(call gb_UnpackedTarball_add_patches,redland,\
$(if $(filter ANDROID,$(OS)),external/redland/redland/redland-android.patch.1) \
$(if $(filter WNTGCC,$(OS)$(COM)),external/redland/redland/redland-mingw.patch.1) \
$(if $(CROSS_COMPILING),external/redland/redland/redland-xcompile.patch.1) \
external/redland/redland/redland-format.patch.0 \
))
# vim: set noet sw=4 ts=4:

View File

@@ -0,0 +1,10 @@
--- src/rdf_log.c
+++ src/rdf_log.c
@@ -136,6 +136,7 @@
char *buffer = LIBRDF_MALLOC(char*, slocator_len + 2);
*buffer=' ';
raptor_locator_format(buffer + 1, slocator_len, (raptor_locator*)locator);
+ buffer[slocator_len + 1] = '\0';
fputs(buffer, stderr);
LIBRDF_FREE(char*, buffer);
}