Projects
home:pandora:RobinOS23
bzip2
_service:download_src_package:0001-bzip2-1.0.6-...
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File _service:download_src_package:0001-bzip2-1.0.6-saneso-cflages.patch of Package bzip2
From 0c6cce682524e0aae6a6a6668f0bd53df6542aeb Mon Sep 17 00:00:00 2001 From: liuzhilin <liuzhilin@uniontech.com> Date: Thu, 17 Mar 2022 03:37:14 -0400 Subject: [PATCH] bzip2-1.0.6-saneso-cflages --- Makefile | 4 ---- Makefile-libbz2_so | 5 ++--- bzip2recover.c | 4 +++- 3 files changed, 5 insertions(+), 8 deletions(-) diff --git a/Makefile b/Makefile index 9754ddf..5aa240d 100644 --- a/Makefile +++ b/Makefile @@ -18,10 +18,6 @@ SHELL=/bin/sh CC=gcc AR=ar RANLIB=ranlib -LDFLAGS= - -BIGFILES=-D_FILE_OFFSET_BITS=64 -CFLAGS=-Wall -Winline -O2 -g $(BIGFILES) # Where you want it installed when you do 'make install' PREFIX=/usr/local diff --git a/Makefile-libbz2_so b/Makefile-libbz2_so index e58791b..e2fb744 100644 --- a/Makefile-libbz2_so +++ b/Makefile-libbz2_so @@ -24,7 +24,6 @@ SHELL=/bin/sh CC=gcc BIGFILES=-D_FILE_OFFSET_BITS=64 -CFLAGS=-fpic -fPIC -Wall -Winline -O2 -g $(BIGFILES) OBJS= blocksort.o \ huffman.o \ @@ -35,8 +34,8 @@ OBJS= blocksort.o \ bzlib.o all: $(OBJS) - $(CC) -shared -Wl,-soname -Wl,libbz2.so.1.0 -o libbz2.so.1.0.6 $(OBJS) - $(CC) $(CFLAGS) -o bzip2-shared bzip2.c libbz2.so.1.0.6 + $(CC) $(CFLAGS) $(LDFLAGS) -shared -Wl,-soname -Wl,libbz2.so.1 -o libbz2.so.1.0.6 $(OBJS) + $(CC) $(CFLAGS) $(LDFLAGS) -o bzip2-shared bzip2.c libbz2.so.1.0.6 rm -f libbz2.so.1.0 ln -s libbz2.so.1.0.6 libbz2.so.1.0 diff --git a/bzip2recover.c b/bzip2recover.c index f9de049..35baedc 100644 --- a/bzip2recover.c +++ b/bzip2recover.c @@ -309,7 +309,8 @@ Int32 main ( Int32 argc, Char** argv ) UInt32 buffHi, buffLo, blockCRC; Char* p; - strcpy ( progName, argv[0] ); + strncpy ( progName, argv[0], BZ_MAX_FILENAME-1); + progName[BZ_MAX_FILENAME-1]='\0'; inFileName[0] = outFileName[0] = 0; fprintf ( stderr, @@ -457,6 +458,7 @@ Int32 main ( Int32 argc, Char** argv ) bsPutUChar ( bsWr, 0x50 ); bsPutUChar ( bsWr, 0x90 ); bsPutUInt32 ( bsWr, blockCRC ); bsClose ( bsWr ); + outFile = NULL; } if (wrBlock >= rbCtr) break; wrBlock++; -- 2.27.0
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.
浙ICP备2022010568号-2