2015-07-08 09:36:46 +02:00
|
|
|
Index: joe-4.0/joe/b.c
|
2009-10-26 16:55:32 +01:00
|
|
|
===================================================================
|
2015-07-08 09:36:46 +02:00
|
|
|
--- joe-4.0.orig/joe/b.c
|
|
|
|
+++ joe-4.0/joe/b.c
|
|
|
|
@@ -2327,13 +2327,13 @@ unsigned char *parsens(unsigned char *s,
|
2009-10-26 16:55:32 +01:00
|
|
|
|
2015-07-08 09:36:46 +02:00
|
|
|
#if HAVE_LONG_LONG
|
2009-10-26 16:55:32 +01:00
|
|
|
if (n[x + 1] == 'x' || n[x + 1] == 'X')
|
2015-07-08 09:36:46 +02:00
|
|
|
- sscanf((char *)(n + x + 2), "%llx", &skipr);
|
|
|
|
+ sscanf((char *)(n + x + 2), "%llx", (long long unsigned int *)skipr);
|
2009-10-26 16:55:32 +01:00
|
|
|
else if (n[x + 1] == '0' && (n[x + 2] == 'x' || n[x + 2] == 'X'))
|
2015-07-08 09:36:46 +02:00
|
|
|
- sscanf((char *)(n + x + 3), "%llx", &skipr);
|
|
|
|
+ sscanf((char *)(n + x + 3), "%llx", (long long unsigned int *)skipr);
|
2009-10-26 16:55:32 +01:00
|
|
|
else if (n[x + 1] == '0')
|
2015-07-08 09:36:46 +02:00
|
|
|
- sscanf((char *)(n + x + 1), "%llo", &skipr);
|
|
|
|
+ sscanf((char *)(n + x + 1), "%llo", (long long unsigned int *)skipr);
|
2009-10-26 16:55:32 +01:00
|
|
|
else
|
2015-07-08 09:36:46 +02:00
|
|
|
- sscanf((char *)(n + x + 1), "%llu", &skipr);
|
|
|
|
+ sscanf((char *)(n + x + 1), "%llu", (long long int *)skipr);
|
2009-10-26 16:55:32 +01:00
|
|
|
#else
|
|
|
|
if (n[x + 1] == 'x' || n[x + 1] == 'X')
|
2015-07-08 09:36:46 +02:00
|
|
|
sscanf((char *)(n + x + 2), "%lx", &skipr);
|
|
|
|
@@ -2353,13 +2353,13 @@ unsigned char *parsens(unsigned char *s,
|
2009-10-26 16:55:32 +01:00
|
|
|
*amnt = *skip;
|
2015-07-08 09:36:46 +02:00
|
|
|
#ifdef HAVE_LONG_LONG
|
2009-10-26 16:55:32 +01:00
|
|
|
if (n[x + 1] == 'x' || n[x + 1] == 'X')
|
2015-07-08 09:36:46 +02:00
|
|
|
- sscanf((char *)(n + x + 2), "%llx", &skipr);
|
|
|
|
+ sscanf((char *)(n + x + 2), "%llx", (long long unsigned int *)&skipr);
|
2009-10-26 16:55:32 +01:00
|
|
|
else if (n[x + 1] == '0' && (n[x + 2] == 'x' || n[x + 2] == 'X'))
|
2015-07-08 09:36:46 +02:00
|
|
|
- sscanf((char *)(n + x + 3), "%llx", &skipr);
|
|
|
|
+ sscanf((char *)(n + x + 3), "%llx", (long long unsigned int *)skipr);
|
2009-10-26 16:55:32 +01:00
|
|
|
else if (n[x + 1] == '0')
|
2015-07-08 09:36:46 +02:00
|
|
|
- sscanf((char *)(n + x + 1), "%llo", &skipr);
|
|
|
|
+ sscanf((char *)(n + x + 1), "%llo", (long long unsigned int *)skipr);
|
2009-10-26 16:55:32 +01:00
|
|
|
else
|
2015-07-08 09:36:46 +02:00
|
|
|
- sscanf((char *)(n + x + 1), "%llu", &skipr);
|
|
|
|
+ sscanf((char *)(n + x + 1), "%llu", (long long int *)skipr);
|
2009-10-26 16:55:32 +01:00
|
|
|
#else
|
|
|
|
if (n[x + 1] == 'x' || n[x + 1] == 'X')
|
2015-07-08 09:36:46 +02:00
|
|
|
sscanf((char *)(n + x + 2), "%lx", &skipr);
|