diff options
Diffstat (limited to 'linden/indra/lscript/lscript_compile/lscript_bytecode.cpp')
-rw-r--r-- | linden/indra/lscript/lscript_compile/lscript_bytecode.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/linden/indra/lscript/lscript_compile/lscript_bytecode.cpp b/linden/indra/lscript/lscript_compile/lscript_bytecode.cpp index a1ea22b..0d75eee 100644 --- a/linden/indra/lscript/lscript_compile/lscript_bytecode.cpp +++ b/linden/indra/lscript/lscript_compile/lscript_bytecode.cpp | |||
@@ -308,7 +308,10 @@ void LLScriptScriptCodeChunk::build(FILE *efp, FILE *bcfp) | |||
308 | set_register(mCompleteCode, LREG_TM, mTotalSize); | 308 | set_register(mCompleteCode, LREG_TM, mTotalSize); |
309 | 309 | ||
310 | 310 | ||
311 | fwrite(mCompleteCode, 1, mTotalSize, bcfp); | 311 | if (fwrite(mCompleteCode, 1, mTotalSize, bcfp) != mTotalSize) |
312 | { | ||
313 | llwarns << "Short write" << llendl; | ||
314 | } | ||
312 | } | 315 | } |
313 | else | 316 | else |
314 | { | 317 | { |