From df3709d167ccb86775b7aebb12bc6865fc814a9d Mon Sep 17 00:00:00 2001 From: Jason Merrill Date: Fri, 4 Nov 2022 13:05:06 -0400 Subject: tweak get_source_text_between comment --- gcc/input.cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/gcc/input.cc b/gcc/input.cc index 04d0809..c185bd7 100644 --- a/gcc/input.cc +++ b/gcc/input.cc @@ -949,8 +949,9 @@ location_get_source_line (const char *file_path, int line) return char_span (buffer, len); } -/* Return a copy of the source text between two locations. The caller is - responsible for freeing the return value. */ +/* Return a NUL-terminated copy of the source text between two locations, or + NULL if the arguments are invalid. The caller is responsible for freeing + the return value. */ char * get_source_text_between (location_t start, location_t end) -- cgit v1.1