[nemiver/console: 3/11] Fix buffer overflow



commit aa52d3527b71ac10fca40de0945c39aed623e869
Author: Fabien Parent <parent f gmail com>
Date:   Fri Mar 2 13:58:29 2012 +0100

    Fix buffer overflow

 src/common/nmv-console.cc |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/common/nmv-console.cc b/src/common/nmv-console.cc
index 8df71b9..a480ce7 100644
--- a/src/common/nmv-console.cc
+++ b/src/common/nmv-console.cc
@@ -310,7 +310,7 @@ struct Console::Priv {
                 cmd_argv.push_back (a_buffer);
             }
             a_buffer += local_index + 1;
-            local_index = 0;
+            local_index = -1;
         }
 
         if (command_name.empty ()) {



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