[gparted] Fix innocuous bug



commit 9b004634ab96059779bd5961960cb88f12b49d49
Author: Curtis Gedak <gedakc gmail com>
Date:   Tue Oct 18 10:25:37 2011 -0600

    Fix innocuous bug
    
    Fix bug introduced in GParted 0.9.0 in commit
    4a8fef98225c513cad9d38f32303c67d1ceed4b8 to address ISO C++ ambiguity
    compiler warning.
    
    Due to the nature of the surrounding code, this bug was not evident
    in the log file output.
    
    Thanks to Magnus Fromreide for finding this bug.

 src/Utils.cc |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/Utils.cc b/src/Utils.cc
index befaa48..9e2d34b 100644
--- a/src/Utils.cc
+++ b/src/Utils.cc
@@ -439,7 +439,7 @@ Glib::ustring Utils::cleanup_cursor( const Glib::ustring & text )
 				break;
 			case '\b':
 				if (out.tellp() > startofline)
-					out.seekp(out.tellp() - std::streamsize('\b'));
+					out.seekp(out.tellp() - std::streamoff(1));
 				break;
 			default:
 				out.put(ch);



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