You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/sci-mathematics/euler/files/euler-fortify.patch

37 lines
1.1 KiB

diff -Nur euler-1.61.0.orig/src/command.c euler-1.61.0/src/command.c
--- euler-1.61.0.orig/src/command.c 2010-11-19 17:50:54.000000000 +0000
+++ euler-1.61.0/src/command.c 2010-11-19 18:23:11.000000000 +0000
@@ -606,7 +606,7 @@
void do_help (void)
{ char name[256];
header *hd;
- int count,i,defaults;
+ size_t count,i,defaults;
char *p,*end,*pnote;
builtintyp *b;
scan_space();
diff -Nur euler-1.61.0.orig/src/stack.h euler-1.61.0/src/stack.h
--- euler-1.61.0.orig/src/stack.h 2010-11-19 17:50:54.000000000 +0000
+++ euler-1.61.0/src/stack.h 2010-11-19 18:19:23.000000000 +0000
@@ -63,7 +63,7 @@
#endif
} dims;
-typedef struct { unsigned long s; } inttyp;
+typedef struct { size_t s; } inttyp;
typedef struct { header hd; double val; } realtyp;
diff -Nur euler-1.61.0.orig/src/udf.c euler-1.61.0/src/udf.c
--- euler-1.61.0.orig/src/udf.c 2010-11-19 17:50:54.000000000 +0000
+++ euler-1.61.0/src/udf.c 2010-11-19 18:21:20.000000000 +0000
@@ -334,7 +334,7 @@
{ char name[16];
header *hd;
char *p,*pnote;
- int i,count,defaults;
+ size_t i,count,defaults;
builtintyp *b;
scan_space();
scan_name(name); hd=searchudf(name);