diff options
Diffstat (limited to 'linden/indra/llmessage/lldatapacker.cpp')
-rw-r--r-- | linden/indra/llmessage/lldatapacker.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/linden/indra/llmessage/lldatapacker.cpp b/linden/indra/llmessage/lldatapacker.cpp index 3cdaa25..8725870 100644 --- a/linden/indra/llmessage/lldatapacker.cpp +++ b/linden/indra/llmessage/lldatapacker.cpp | |||
@@ -1895,7 +1895,10 @@ BOOL LLDataPackerAsciiFile::getValueStr(const char *name, char *out_value, S32 v | |||
1895 | { | 1895 | { |
1896 | fpos_t last_pos; | 1896 | fpos_t last_pos; |
1897 | fgetpos(mFP, &last_pos); | 1897 | fgetpos(mFP, &last_pos); |
1898 | fgets(buffer, DP_BUFSIZE, mFP); | 1898 | if (fgets(buffer, DP_BUFSIZE, mFP) == NULL) |
1899 | { | ||
1900 | buffer[0] = '\0'; | ||
1901 | } | ||
1899 | 1902 | ||
1900 | sscanf(buffer, "%511s %511[^\n]", keyword, value); /* Flawfinder: ignore */ | 1903 | sscanf(buffer, "%511s %511[^\n]", keyword, value); /* Flawfinder: ignore */ |
1901 | 1904 | ||