changeset 1119:845922d73e9c

Turn modptr local variable into unsigned char *
author Gaël PORTAY <gael.portay@gmail.com>
date Sun, 03 May 2015 00:27:49 +0200
parents 506e769ed6d1
children 391bb7d560c6
files keyimport.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/keyimport.c	Sun May 03 00:23:55 2015 +0200
+++ b/keyimport.c	Sun May 03 00:27:49 2015 +0200
@@ -507,7 +507,7 @@
 	int i, num_integers = 0;
 	sign_key *retval = NULL;
 	char *errmsg;
-	char *modptr = NULL;
+	unsigned char *modptr = NULL;
 	int modlen = -9999;
 	enum signkey_type type;
 
@@ -646,7 +646,7 @@
 			 */
 			if (i == 1) {
 				/* Save the details for after we deal with number 2. */
-				modptr = (char *)p;
+				modptr = p;
 				modlen = len;
 			} else if (i >= 2 && i <= 5) {
 				buf_putstring(blobbuf, p, len);