[evolution-patches] Fix for 64-bit cleanliness in pkcs12 code



This patch fixes the following warning in e-pkcs12.c:

e-pkcs12.c: In function `prompt_for_password':
e-pkcs12.c:243: warning: passing arg 2 of `memcpy' makes pointer from
integer without a cast

This can cause problems on 64-bit machines.

-- dobey

Index: lib/e-pkcs12.c
===================================================================
RCS file: /cvs/gnome/evolution/smime/lib/e-pkcs12.c,v
retrieving revision 1.4
diff -u -r1.4 e-pkcs12.c
--- lib/e-pkcs12.c	11 Feb 2004 19:14:50 -0000	1.4
+++ lib/e-pkcs12.c	2 Aug 2004 14:51:25 -0000
@@ -240,7 +240,7 @@
 			pwd->data[2*i+1] = (unsigned char)(uni & 0xFF);
 		}
 #else
-		memcpy (pwd->data, uni, pwd->len-2);
+		memcpy (pwd->data, &uni, pwd->len-2);
 #endif
 		memset (passwd, 0, strlen (passwd));
 		g_free (passwd);


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