Browse Source

Fix invalid read found by valgrind.

tags/non-daw-v1.1.0
Jonathan Moore Liles 17 years ago
parent
commit
2881479cc2
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      Timeline/Loggable.C

+ 1
- 1
Timeline/Loggable.C View File

@@ -129,7 +129,7 @@ Loggable::escape ( const char *s )
{
static char r[512];

for ( size_t i = 0; i < sizeof( r ); ++i, ++s )
for ( size_t i = 0; *s && i < sizeof( r ); ++i, ++s )
{
if ( '\n' == *s )
{


Loading…
Cancel
Save