[gcompris: 5/9] Fix text encoding in wordprocessor activity



commit 54fa43c5973630d64778433e5235dc934fb0fc7f
Author: Aleksey Lim <alsroot sugarlabs org>
Date:   Sat Mar 10 12:31:35 2012 +0000

    Fix text encoding in wordprocessor activity
    
    To reproduce the error:
    * enter one-char lines and save it;
    * on restore, one-char lines will contain random 2nd char.

 src/wordprocessor-activity/wordprocessor.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/wordprocessor-activity/wordprocessor.c b/src/wordprocessor-activity/wordprocessor.c
index 8e5d532..5de428f 100644
--- a/src/wordprocessor-activity/wordprocessor.c
+++ b/src/wordprocessor-activity/wordprocessor.c
@@ -888,7 +888,7 @@ escape(char *input)
       else
 	{
 	  result[o++] = c;
-	  result[o+1] = '\0';
+	  result[o] = '\0';
 	}
     }
   g_free(input);



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