gtranslator r3617 - in trunk: . plugins/subversion



Author: icq
Date: Mon Sep 22 09:39:16 2008
New Revision: 3617
URL: http://svn.gnome.org/viewvc/gtranslator?rev=3617&view=rev

Log:
2008-07-31  Ignacio Casal Quinteiro  <nacho resa gmail com>

        * plugins/subversion/subversion-utils.c:
        Fixed bug adding ChangeLog that was adding random data
        at the end of the file.

Modified:
   trunk/ChangeLog
   trunk/plugins/subversion/subversion-utils.c

Modified: trunk/plugins/subversion/subversion-utils.c
==============================================================================
--- trunk/plugins/subversion/subversion-utils.c	(original)
+++ trunk/plugins/subversion/subversion-utils.c	Mon Sep 22 09:39:16 2008
@@ -101,8 +101,6 @@
 	gsize bytes = 1;
 	GError *error = NULL;
 	gchar buffer[4096];
-	static gint i = 0;
-	i++;
 	
 	while (bytes != 0 && bytes != -1)
 	{
@@ -111,8 +109,9 @@
 					     NULL, &error);
 		if (error)
 			break;
+
 		g_output_stream_write (ostream, buffer,
-				       sizeof (buffer),
+				       bytes,
 				       NULL, &error);
 		if (error)
 			break;
@@ -157,7 +156,6 @@
 	code = gtranslator_profile_get_language_code (profile);
 	date = gtranslator_utils_get_current_date ();
 	
-	//FIXME: Is missing the date
 	changelog_entry = g_strdup_printf ("%s  %s  <%s>\n"
 					   "\n\t %s.po: %s\n\n", date, name, email,
 					   code, log);



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