[anjuta] build-basic-autotools:bgo#688293 - build-basic-autotools: Fix invalid read



commit b194db8a24405eee752e4298a7b2c523bb4d80bc
Author: SÃbastien Granjoux <seb sfo free fr>
Date:   Sat Nov 17 10:25:35 2012 +0100

    build-basic-autotools:bgo#688293 - build-basic-autotools: Fix invalid read

 plugins/build-basic-autotools/program.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/plugins/build-basic-autotools/program.c b/plugins/build-basic-autotools/program.c
index afdd570..05dd18f 100644
--- a/plugins/build-basic-autotools/program.c
+++ b/plugins/build-basic-autotools/program.c
@@ -121,7 +121,7 @@ build_program_find_env (BuildProgram *prog, const gchar *name)
 		/* Look for an already existing variable */
 		for (i = 0; envp[i] != NULL; i++)
 		{
-			if ((envp[i][len] == '=') && (strncmp (envp[i], name, len) == 0))
+			if ((strncmp (envp[i], name, len) == 0) && (envp[i][len] == '='))
 			{
 				return i;
 			}



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]