]> git.sesse.net Git - mlt/commitdiff
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 428ed0b6ab8c99013355a121008ec8538394f7d0..b1c5f9402865cba9c87bace901ad49598436c585 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;
        }