Diff of /plugins/saveactions.c [c986ee] .. [e3fad4]  Maximize  Restore

  Switch to side-by-side view

--- a/plugins/saveactions.c
+++ b/plugins/saveactions.c
@@ -191,6 +191,7 @@
 	gchar *basename_src;
 	gchar *dir_parts_src;
 	gchar *stamp;
+	gchar buf[512];
 
 	if (! enable_backupcopy)
 		return;
@@ -227,9 +228,9 @@
 		return;
 	}
 
-	while (fgets(stamp, sizeof(stamp), src) != NULL)
-	{
-		fputs(stamp, dst);
+	while (fgets(buf, sizeof(buf), src) != NULL)
+	{
+		fputs(buf, dst);
 	}
 
 	fclose(src);

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks