#
267654 |
|
19-Jun-2014 |
gjb |
Copy stable/9 to releng/9.3 as part of the 9.3-RELEASE cycle.
Approved by: re (implicit) Sponsored by: The FreeBSD Foundation |
#
262927 |
|
08-Mar-2014 |
brueffer |
MFC: r262333
Simplify the way the end of a singly linked list is followed (for adding items), so it is more obvious that we aren't going to indirect through a NULL pointer.
PR: 144723 Submitted by: Garrett Cooper <yaneurabeya at gmail.com> Obtained from: NetBSD r1.19
|
#
231578 |
|
13-Feb-2012 |
tijl |
MFC r229794:
- Fix how hexdump parses escape strings From the NetBSD bug: The way how hexdump(1) parses escape sequences has some bugs. It shows up when an escape sequence is used as the non-last character of a format string.
MFC r230649:
Fix decoding of escape sequences in format strings: - Zero-terminate the resulting string by letting the for-loop copy the terminating zero. - Exit the for-loop after handling a backslash at the end of the format string to fix a buffer overrun. - Remove some unnecessary comments and blank lines.
PR: bin/144722
|
#
225736 |
|
22-Sep-2011 |
kensmith |
Copy head to stable/9 as part of 9.0-RELEASE release cycle.
Approved by: re (implicit)
|
#
216370 |
|
11-Dec-2010 |
joel |
Remove the advertising clause from UCB copyrighted files in usr.bin. This is in accordance with the information provided at ftp://ftp.cs.berkeley.edu/pub/4bsd/README.Impt.License.Change
Also add $FreeBSD$ to a few files to keep svn happy.
Discussed with: imp, rwatson
|
#
194796 |
|
23-Jun-2009 |
delphij |
Use strlcpy() instead of explicitly set \0 on the tail of the array.
|
#
161132 |
|
09-Aug-2006 |
maxim |
o Simple strcpy/strcat replacement.
PR: bin/101575 Founded by: Dan Lukes Obtained from: OpenBSD, rev. 1.11 by deraadt MFC after: 2 weeks
|
#
132541 |
|
22-Jul-2004 |
johan |
display.c: - 'savech' is only used if it is set a few lines above where it is used, initialize it to silence warning.
- 'length' is either -1 or greater than 0, hence it is safe to cast it to unsigned when comparing it here.
odsyntax.c: - 'p' is assigned either (*argvp)[0] or (*argvp)[1] which both are char *. 'num' and 'end' are assigned values based on 'p'. Hence use char * instead of unsigned char * for these variables.
'&end' as the second argument to strtoll does not need to be casted to char** any more.
This solves a 'dereferencing type-punned pointer will break strict-aliasing rules' warning when compiling with -O2.
parse.c: - 'prec' is only used when sokay == USEPREC and sokay = USEPREC when 'prec' is assigned. Hence 'prec' is not used uninitialized, initialize it to silence warning.
- The code involving 'nextpr' is hard to follow, but I belive 'nextpr' will not be used unless it is initialized. Anyway, IF 'nextpr' is used uninitialized it is better to get a consistant error (seg fault, when dereferencing a NULL pointer) than potentially accessing some random memory.
The above changes makes hexdump WARNS=6 clean even when compiled with -O2. Hence bump WARNS to keep it clean.
Tested by: CFLAGS='-O2 -pipe' make universe
|
#
102944 |
|
04-Sep-2002 |
dwmalone |
ANSIify function definitions. Add some constness to avoid some warnings. Remove use register keyword. Deal with missing/unneeded extern/prototypes. Some minor type changes/casts to avoid warnings.
Reviewed by: md5
|
#
99112 |
|
30-Jun-2002 |
obrien |
Consistently use FBSDID
|
#
97329 |
|
27-May-2002 |
tjr |
From NetBSD: Revision 1.10 Sat Oct 14 17:41:55 2000 UTC by bjh21 Don't core dump with an empty format string. Fixes PR#11218. Patch supplied by Launey Thomas.
Obtained from: NetBSD
|
#
96795 |
|
17-May-2002 |
tjr |
Overhaul hexdump's od syntax code to handle the -s -A -j -N -t options that SUSv3 requires and give od a proper manual page.
PR: 36783
|
#
96792 |
|
17-May-2002 |
tjr |
Add support for printing long doubles.
PR: 36783
|
#
91840 |
|
07-Mar-2002 |
obrien |
Slightly more efficient version of rev 1.6.
|
#
87203 |
|
02-Dec-2001 |
markm |
WARNS=2 fixups.
|
#
80290 |
|
24-Jul-2001 |
obrien |
Remove the misnamed `emalloc' and replace its uses with the calloc (along with error checking) that it actually was.
|
#
50477 |
|
27-Aug-1999 |
peter |
$Id$ -> $FreeBSD$
|
#
30921 |
|
04-Nov-1997 |
ache |
Localize it
|
#
27315 |
|
10-Jul-1997 |
charnier |
Use err(3) instead of local redefinition, incorporate `hd' in usage str.
|
#
1591 |
|
27-May-1994 |
rgrimes |
This commit was generated by cvs2svn to compensate for changes in r1590, which included commits to RCS files with non-trunk default branches.
|
#
1590 |
|
27-May-1994 |
rgrimes |
BSD 4.4 Lite Usr.bin Sources
|