[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Gnash-commit] gnash/libbase log.cpp
From: |
Vitaly Alexeev |
Subject: |
[Gnash-commit] gnash/libbase log.cpp |
Date: |
Mon, 12 Jun 2006 17:13:20 +0000 |
CVSROOT: /sources/gnash
Module name: gnash
Changes by: Vitaly Alexeev <alexeev> 06/06/12 17:13:20
Modified files:
libbase : log.cpp
Log message:
fix trace("") bug
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/gnash/libbase/log.cpp?cvsroot=gnash&r1=1.12&r2=1.13
Patches:
Index: log.cpp
===================================================================
RCS file: /sources/gnash/gnash/libbase/log.cpp,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -b -r1.12 -r1.13
--- log.cpp 10 Jun 2006 11:45:39 -0000 1.12
+++ log.cpp 12 Jun 2006 17:13:20 -0000 1.13
@@ -527,9 +527,13 @@
c[len] = 0;
}
- if (c[len-1] == '\n') {
+ if (len > 0)
+ {
+ if (c[len-1] == '\n')
+ {
c[len-1] = 0;
}
+ }
if (_stamp == true && (_state == IDLE || _state == OPEN)) {
_state = INPROGRESS;