quick valerie fix
authorlilo_booter <lilo_booter@d19143bc-622f-0410-bfdd-b5b2a6649095>
Mon, 22 Mar 2004 20:32:00 +0000 (20:32 +0000)
committerlilo_booter <lilo_booter@d19143bc-622f-0410-bfdd-b5b2a6649095>
Mon, 22 Mar 2004 20:32:00 +0000 (20:32 +0000)
git-svn-id: https://mlt.svn.sourceforge.net/svnroot/mlt/trunk/mlt@229 d19143bc-622f-0410-bfdd-b5b2a6649095

src/valerie/valerie.c

index 428ed0b..b1c5f94 100644 (file)
@@ -184,7 +184,7 @@ valerie_error_code valerie_unit_add( valerie this, char *guid, int *unit )
        if ( error == valerie_ok )
        {
                int length = valerie_response_count( this->last_response );
-               char *line = valerie_response_get_line( this->last_response, length - 2 );
+               char *line = valerie_response_get_line( this->last_response, length - 1 );
                if ( line == NULL || sscanf( line, "U%d", unit ) != 1 )
                        error = valerie_unit_creation_failed;
        }