svn commit: r295427 - head/bin/dd
Edward Tomasz Napierala
trasz at FreeBSD.org
Tue Feb 9 09:37:05 UTC 2016
Author: trasz
Date: Tue Feb 9 09:37:04 2016
New Revision: 295427
URL: https://svnweb.freebsd.org/changeset/base/295427
Log:
Use a proper type for return value of postfix_to_mult(); the way it's
being used wouldn't work if the value returned didn't fit in intmax_t.
Submitted by: bde@
MFC after: 1 month
Sponsored by: The FreeBSD Foundation
Modified:
head/bin/dd/args.c
Modified: head/bin/dd/args.c
==============================================================================
--- head/bin/dd/args.c Tue Feb 9 09:32:10 2016 (r295426)
+++ head/bin/dd/args.c Tue Feb 9 09:37:04 2016 (r295427)
@@ -360,10 +360,10 @@ c_conv(const void *a, const void *b)
((const struct conv *)b)->name));
}
-static uintmax_t
+static intmax_t
postfix_to_mult(const char expr)
{
- uintmax_t mult;
+ intmax_t mult;
mult = 0;
switch (expr) {
More information about the svn-src-all
mailing list