Sophie

Sophie

distrib > Mageia > 3 > i586 > media > core-release-src > by-pkgid > 54c2b78f4f29f4c3633e6a50660e04c2 > files > 1

rdesktop-1.7.1-2.mga3.src.rpm

diff -Naur -x '*~' rdesktop-1.7.1/rdesktop.c rdesktop-1.7.1-fix-format-errors/rdesktop.c
--- rdesktop-1.7.1/rdesktop.c	2011-11-25 11:03:03.000000000 +0100
+++ rdesktop-1.7.1-fix-format-errors/rdesktop.c	2012-01-29 18:20:32.721948061 +0100
@@ -1574,7 +1574,7 @@
 	if (home == NULL)
 		return -1;
 
-	snprintf((char*)hi, 16, g_hostname);
+	snprintf((char*)hi, 16, "%s", g_hostname);
 	sec_hash_sha1_16(ho, hi, g_static_rdesktop_salt_16);
 	sec_hash_to_string(hash, 40, ho, 22);
 
@@ -1624,7 +1624,7 @@
 		return;
 	}
 
-	snprintf((char*)hi,16,g_hostname);
+	snprintf((char*)hi,16,"%s",g_hostname);
 	sec_hash_sha1_16(ho, hi, g_static_rdesktop_salt_16);
 	sec_hash_to_string(hash, 40, ho, 20);