diff options
author | nyamatongwe <unknown> | 2000-03-08 13:56:46 +0000 |
---|---|---|
committer | nyamatongwe <unknown> | 2000-03-08 13:56:46 +0000 |
commit | fdadfbf88b6ef8abfc4ee6d0d07fa76cd6f79cf1 (patch) | |
tree | 5cb35872b66ae9f021ecf762de4b03e416e2d2fe /src/PropSet.cxx | |
parent | 9367896cf64d36c501f545690f68faf544f6c09d (diff) | |
download | scintilla-mirror-fdadfbf88b6ef8abfc4ee6d0d07fa76cd6f79cf1.tar.gz |
Made work on GTK+/Linux.
Diffstat (limited to 'src/PropSet.cxx')
-rw-r--r-- | src/PropSet.cxx | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/PropSet.cxx b/src/PropSet.cxx index 7e2a906a4..8582105ea 100644 --- a/src/PropSet.cxx +++ b/src/PropSet.cxx @@ -27,6 +27,7 @@ bool EqualCaseInsensitive(const char *a, const char *b) { // Get a line of input. If end of line escaped with '\\' then continue reading. static bool GetFullLine(const char *&fpc, int &lenData, char *s, int len) { bool continuation = true; + s[0] = '\0'; while ((len > 1) && lenData > 0) { char ch = *fpc; fpc++; @@ -46,6 +47,7 @@ static bool GetFullLine(const char *&fpc, int &lenData, char *s, int len) { } else { continuation = false; *s++ = ch; + *s = '\0'; len--; } } @@ -253,6 +255,9 @@ void PropSet::ReadFromMemory(const char *data, int len) { if (isalpha(linebuf[0])) Set(linebuf); } + // If there is a final line: + if (isalpha(linebuf[0])) + Set(linebuf); } } |