From: lilo_booter Date: Mon, 22 Mar 2004 20:32:00 +0000 (+0000) Subject: quick valerie fix X-Git-Url: http://research.m1stereo.tv/gitweb?a=commitdiff_plain;h=521423f4869254f213455a239688159c283594b0;p=melted quick valerie fix git-svn-id: https://mlt.svn.sourceforge.net/svnroot/mlt/trunk/mlt@229 d19143bc-622f-0410-bfdd-b5b2a6649095 --- diff --git a/src/valerie/valerie.c b/src/valerie/valerie.c index 428ed0b..b1c5f94 100644 --- a/src/valerie/valerie.c +++ b/src/valerie/valerie.c @@ -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; }