summaryrefslogtreecommitdiff
path: root/fluid/file.cxx
diff options
context:
space:
mode:
authorMatthias Melcher <github@matthiasm.com>2023-11-05 14:53:42 +0100
committerMatthias Melcher <github@matthiasm.com>2023-11-05 14:53:47 +0100
commit032d3f5cf45a08ac35edf2cf6b2014730955ec2c (patch)
tree47900b9171cd981c211b601a5fd70f4811069b49 /fluid/file.cxx
parent8c8742740362159f63c802cc38aa0fdd6b09ea5a (diff)
FLUID: Fixes child properties reader.
Diffstat (limited to 'fluid/file.cxx')
-rw-r--r--fluid/file.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/fluid/file.cxx b/fluid/file.cxx
index 9694d5623..3f0fafd47 100644
--- a/fluid/file.cxx
+++ b/fluid/file.cxx
@@ -504,7 +504,8 @@ void Fd_Project_Reader::read_error(const char *format, ...) {
will return the string `"{"`, if clear, a `{` is seen as the start of a word
\return a pointer to the internal buffer, containing a copy of the word.
Don't free the buffer! Note that most (all?) other file operations will
- overwrite this buffer.
+ overwrite this buffer. If wantbrace is not set, but we read a leading '{',
+ the returned string will be stripped of its leading and trailing braces.
*/
const char *Fd_Project_Reader::read_word(int wantbrace) {
int x;