File: 05_format-security.diff

package info (click to toggle)
grdesktop 0.23%2Bd040330-9
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,916 kB
  • sloc: ansic: 2,711; sh: 821; xml: 270; makefile: 80
file content (31 lines) | stat: -rw-r--r-- 1,002 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
Description: Fix compiler errors with -Werror=format-security.
Author: Bart Martens <bartm@debian.org>
Forwarded: no
Last-Update: 2012-05-13
---

--- ./src/run.c.orig	2004-03-30 13:17:53.000000000 +0000
+++ ./src/run.c	2012-05-13 06:33:35.000000000 +0000
@@ -110,7 +110,7 @@
 		sshcmd = g_strconcat(sshcmd, g_strdup_printf("%s",
 			SHASH("sshhost")), NULL);
 		sshcmd = g_strconcat(sshcmd, g_strdup_printf(" \"%s\"", cmd), NULL);
-		g_warning(sshcmd);
+		g_warning("%s",sshcmd);
 		cmdline = g_strconcat(sshcmd, NULL);
 	} else {	/* execute without ssh */
 		cmdline = g_strconcat(cmd, NULL);
--- ./src/rdpparse.c.orig	2012-05-13 06:36:59.000000000 +0000
+++ ./src/rdpparse.c	2012-05-13 06:37:31.000000000 +0000
@@ -306,9 +306,9 @@
 	parts = g_strsplit(value, "x", 2);
 
 	if(typ == 'W')
-		return(g_strdup_printf(parts[0]));
+		return(g_strdup_printf("%s",parts[0]));
 	else
-		return(g_strdup_printf(parts[1]));
+		return(g_strdup_printf("%s",parts[1]));
 
 	if(parts != NULL)
 		g_strfreev(parts);