Kaydet (Commit) 90a30ddf authored tarafından Stephan Bergmann's avatar Stephan Bergmann

external/redland: Missing NUL

Change-Id: I388d8a37a0b7f95f21ccbbe04144f39c0fff533f
üst 2c64e08a
......@@ -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:
--- 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);
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment