source: scripts/untested/blfs-patches/ncompress-4.2.4-gcc34.patch@ f118837

clfs-1.2 clfs-2.1 clfs-3.0.0-systemd clfs-3.0.0-sysvinit systemd sysvinit
Last change on this file since f118837 was 16fbfc51, checked in by Jim Gifford <clfs@…>, 19 years ago

r575@server (orig r573): ryan | 2005-06-09 08:51:24 -0700
Add ncompress build script


gcc-3.4 fixes patch is from gentoo
ncompress_4.2.4-15 patch (add bounds checking to fix buffer overflow) from
debian



  • Property mode set to 100644
File size: 915 bytes
RevLine 
[16fbfc51]1--- ncompress-4.2.4/compress42.c 1992-10-28 06:10:53.000000000 -0500
2+++ ../compress42.c 2004-04-13 16:57:11.325373656 -0400
3@@ -171,9 +171,9 @@
4 #ifndef NOFUNCDEF
5 extern void *malloc LARGS((int));
6 extern void free LARGS((void *));
7-#ifndef _IBMR2
8+/* #ifndef _IBMR2
9 extern int open LARGS((char const *,int,...));
10-#endif
11+#endif */
12 extern int close LARGS((int));
13 extern int read LARGS((int,void *,int));
14 extern int write LARGS((int,void const *,int));
15@@ -184,7 +184,7 @@
16 extern char *strcpy LARGS((char *,char const *));
17 extern char *strcat LARGS((char *,char const *));
18 extern int strcmp LARGS((char const *,char const *));
19- extern unsigned strlen LARGS((char const *));
20+/* extern unsigned strlen LARGS((char const *)); */
21 extern void *memset LARGS((void *,char,unsigned int));
22 extern void *memcpy LARGS((void *,void const *,unsigned int));
23 extern int atoi LARGS((char const *));
Note: See TracBrowser for help on using the repository browser.