wiz
2724492d78
Print version string to stdout instead of stderr;
...
it is user-requested and not an error.
2010-10-02 19:31:14 +00:00
joerg
06c042e9bc
Plug a memory leak. From Igor Zinovik.
2010-01-10 01:10:16 +00:00
joerg
d5b2c9a825
Update patch to the version used by DragonFly and derived from OpenBSD.
...
Major changes are:
- better detection of double applied patches
- rejects remain unified diffs for unified patches
- far less limitations, e.g. patch lines may be arbitrary long
This addresses PR standards/11220 by changing patch -b behavior to be
POSIX compliant. Old behavior can be obtained using --suffix, which
works since NetBSD 1.4. pkgsrc has been adjusted accordingly.
2008-09-19 18:33:34 +00:00
lukem
bd560fde31
Convert to using raise_default_signal(3).
2007-10-14 04:54:34 +00:00
christos
bd21f84917
Coverity CID 1253, 1254: Don't assign the return of read or write to size_t.
...
It will never be negative.
2006-04-09 19:12:17 +00:00
skd
4f9669ed8d
add --dry-run like gnu patch.
2005-03-25 23:00:55 +00:00
dsl
58d3abc94f
Add (unsigned char) cast to ctype functions
...
Stop infinite loop if get lower case char with no upper case equiv.
2004-10-30 21:52:09 +00:00
itojun
38b27406f9
remove unused macros
2003-07-30 08:51:55 +00:00
itojun
75c32b46eb
use bounded string op
2003-07-30 08:51:04 +00:00
itojun
c0970755a6
pedantic check around unsafe strncpy.
...
XXX this code needs a serious rewrite
2003-07-12 13:53:08 +00:00
itojun
ef4b3d620c
copyright missing in files, copy them from README
2003-07-12 13:47:42 +00:00
kristerw
b86c323d39
Simplify handling of memory allocation, and make sure all return values
...
from malloc etc. are handled.
This removes the old behavior to retry the operation with a less memory-
consuming method in case malloc failed (this mechanism has never really
worked, and is hard to test. Besides, it is less useful now than it was
20 years ago when the code was written...)
2003-05-30 18:14:13 +00:00
kristerw
2a9882e7e9
Be consistent with use of types (e.g. do not use LINENUM for quantities
...
that are not line numbers).
2003-05-29 00:59:23 +00:00
wiz
1035faff1d
writable, not writeable.
2003-01-06 20:30:28 +00:00
kristerw
93318b47b3
Check result of malloc and strdup
...
Made some functions static
Removed unneccessary buffer
Increased size of some buffers that could overflow
2002-03-16 22:36:42 +00:00
kristerw
2b96113ff9
KNF
2002-03-11 23:29:02 +00:00
kristerw
175b5054de
Ansify
...
Remove unused defines
Remove #ifndef lint
Remove redundant and incorrect casts.
2002-03-11 18:47:51 +00:00
kristerw
8bcbaa7bc8
Ansify
...
Remove 'register'
Make local functions static.
Remove most '#ifndef lint'
2002-03-08 21:57:33 +00:00
is
135600f947
More format string cleanup by sommerfeld.
2000-10-11 14:46:00 +00:00
sommerfe
141aa9e579
Fix PR2429: catch doubly-applied patches which create new files.
1999-02-09 05:15:45 +00:00
christos
b239b35fe2
char -> unsigned char
...
rindex -> strrchr
1998-11-06 22:40:13 +00:00
christos
795e0608f6
WARNSify
1998-02-22 12:55:44 +00:00
thorpej
29cf09f47a
RCS id police.
1996-09-19 06:27:04 +00:00
mycroft
3071125013
Eliminate a compiler warning.
1993-12-07 10:30:52 +00:00
mycroft
aee4b07b8a
Add RCS identifiers, remove some completely useless RCS logs and patchkit
...
headers, and a few other insignificant changes.
1993-08-02 17:48:44 +00:00
cgd
3b63e56cdf
patch 2.0.12u8, from prep.ai.mit.edu. this is not under the GPL.
1993-04-09 11:33:50 +00:00