From 521423f4869254f213455a239688159c283594b0 Mon Sep 17 00:00:00 2001 From: lilo_booter Date: Mon, 22 Mar 2004 20:32:00 +0000 Subject: [PATCH] quick valerie fix git-svn-id: https://mlt.svn.sourceforge.net/svnroot/mlt/trunk/mlt@229 d19143bc-622f-0410-bfdd-b5b2a6649095 --- src/valerie/valerie.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) 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; } -- 1.7.4.4