Sophie

Sophie

distrib > Mageia > 4 > i586 > media > core-release-src > by-pkgid > 186886424cebc51bfe54b428c3d5f5c7 > files > 2

gypsy-0.8-7.mga4.src.rpm

--- gypsy-0.8/src/gypsy-client.c~	2010-04-23 06:26:52.000000000 -0400
+++ gypsy-0.8/src/gypsy-client.c	2012-08-08 17:01:54.266522968 -0400
@@ -408,7 +408,7 @@
 		}
 	} else {
 		g_warning ("Read error: %s", g_strerror (errno));
-		g_set_error (&error, GYPSY_ERROR, errno, g_strerror (errno));
+		g_set_error (&error, GYPSY_ERROR, errno, "%s", g_strerror (errno));
 	}
 
 	return TRUE;
@@ -475,7 +475,7 @@
 		}
 	} else {
 		g_warning ("Read error: %s", g_strerror (errno));
-		g_set_error (&error, GYPSY_ERROR, errno, g_strerror (errno));
+		g_set_error (&error, GYPSY_ERROR, errno, "%s", g_strerror (errno));
 	}
 
 	return TRUE;
@@ -573,7 +573,7 @@
 
 	if (status != G_IO_STATUS_NORMAL) {
 		g_warning ("GARMIN: Error writing \"Private Set Mode\" packet:\n%s", g_strerror (errno));
-		g_set_error (&error, GYPSY_ERROR, errno, g_strerror (errno));
+		g_set_error (&error, GYPSY_ERROR, errno, "%s", g_strerror (errno));
 		return FALSE;
 	}
 
@@ -600,7 +600,7 @@
 
 	if (status != G_IO_STATUS_NORMAL) {
 		g_warning ("GARMIN: Error writing \"Start PVT Transfer\" packet:\n%s", g_strerror (errno));
-		g_set_error (&error, GYPSY_ERROR, errno, g_strerror (errno));
+		g_set_error (&error, GYPSY_ERROR, errno, "%s", g_strerror (errno));
 		return FALSE;
 	}
 
@@ -765,7 +765,7 @@
 		priv->fd = open (priv->device_path, O_RDWR | O_NOCTTY | O_NONBLOCK);
 		if (priv->fd == -1) {
 			g_warning ("Error opening device %s: %s", priv->device_path, g_strerror (errno));
-			g_set_error (error, GYPSY_ERROR, errno, g_strerror (errno));
+			g_set_error (error, GYPSY_ERROR, errno, "%s", g_strerror (errno));
 			return FALSE;
 		}
 
@@ -774,7 +774,7 @@
 
 			if (tcgetattr (priv->fd, &term) < 0) {
 				g_warning ("Error getting term: %s", g_strerror (errno));
-				g_set_error (error, GYPSY_ERROR, errno, g_strerror (errno));
+				g_set_error (error, GYPSY_ERROR, errno, "%s", g_strerror (errno));
 				return FALSE;
 			}
 
@@ -784,7 +784,7 @@
 
 			if (tcsetattr (priv->fd, TCSAFLUSH, &term) < 0) {
 				g_warning ("Error setting term: %s", g_strerror (errno));
-				g_set_error (error, GYPSY_ERROR, errno, g_strerror (errno));
+				g_set_error (error, GYPSY_ERROR, errno, "%s", g_strerror (errno));
 				return FALSE;
 			}
 		}
@@ -824,7 +824,7 @@
 
 	if (status != G_IO_STATUS_NORMAL) {
 		g_warning ("Error setting flags: %s", g_strerror (errno));
-		g_set_error (error, GYPSY_ERROR, errno, g_strerror (errno));
+		g_set_error (error, GYPSY_ERROR, errno, "%s", g_strerror (errno));
 		return FALSE;
 	}
 
@@ -833,7 +833,7 @@
 
 	if (status != G_IO_STATUS_NORMAL) {
 		g_warning ("Error setting encoding: %s", g_strerror (errno));
-		g_set_error (error, GYPSY_ERROR, errno, g_strerror (errno));
+		g_set_error (error, GYPSY_ERROR, errno, "%s", g_strerror (errno));
 		return FALSE;
 	}
 
@@ -863,7 +863,7 @@
 			}
 
 			g_warning ("Error connecting: %s", g_strerror (errno));
-			g_set_error (error, GYPSY_ERROR, errno, g_strerror (errno));
+			g_set_error (error, GYPSY_ERROR, errno, "%s", g_strerror (errno));
 
 			g_source_remove (priv->error_id);
 			priv->error_id = 0;
--- gypsy-0.8/src/main.c~	2009-08-06 06:28:12.000000000 -0400
+++ gypsy-0.8/src/main.c	2012-08-08 17:31:06.731371658 -0400
@@ -113,7 +113,7 @@
 #if GLIB_CHECK_VERSION(2, 14, 0)
 		char *help;
 		help = g_option_context_get_help (context, TRUE, NULL);
-		g_print (help);
+		g_print ("%s", help);
 		g_free (help);
 #else
 		g_printerr ("Cannot parse arguments: %s\n", error->message);