#
259065 |
|
07-Dec-2013 |
gjb |
- Copy stable/10 (r259064) to releng/10.0 as part of the 10.0-RELEASE cycle. - Update __FreeBSD_version [1] - Set branch name to -RC1
[1] 10.0-CURRENT __FreeBSD_version value ended at '55', so start releng/10.0 at '100' so the branch is started with a value ending in zero.
Approved by: re (implicit) Sponsored by: The FreeBSD Foundation |
#
256281 |
|
10-Oct-2013 |
gjb |
Copy head (r256279) to stable/10 as part of the 10.0-RELEASE cycle.
Approved by: re (implicit) Sponsored by: The FreeBSD Foundation
|
#
230649 |
|
28-Jan-2012 |
tijl |
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. [1]
Requested by: bde [1] PR: bin/144722 Approved by: kib (mentor)
|
#
229794 |
|
07-Jan-2012 |
eadler |
- 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.
PR: bin/144722 Submitted by: gcooper Approved by: rpaulo Obtained from: NetBSD MFC after: 1 week
|
#
229403 |
|
03-Jan-2012 |
ed |
Replace index() and rindex() calls with strchr() and strrchr().
The index() and rindex() functions were marked LEGACY in the 2001 revision of POSIX and were subsequently removed from the 2008 revision. The strchr() and strrchr() functions are part of the C standard.
This makes the source code a lot more consistent, as most of these C files also call into other str*() routines. In fact, about a dozen already perform strchr() calls.
|
#
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
|