Skip to content

Commit

Permalink
sysctl(8): Fix handling of uquad type sysctls (wrong variable was tak…
Browse files Browse the repository at this point in the history
…en).
  • Loading branch information
Sascha Wildner committed Jul 12, 2012
1 parent 169b12a commit a1417c6
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions sbin/sysctl/sysctl.c
Expand Up @@ -33,7 +33,6 @@
* @(#) Copyright (c) 1993 The Regents of the University of California. All rights reserved.
* @(#)from: sysctl.c 8.1 (Berkeley) 6/6/93
* $FreeBSD: src/sbin/sysctl/sysctl.c,v 1.25.2.11 2003/05/01 22:48:08 trhodes Exp $
* $DragonFly: src/sbin/sysctl/sysctl.c,v 1.16 2007/10/02 12:57:00 hasso Exp $
*/

#ifdef __i386__
Expand Down Expand Up @@ -240,8 +239,8 @@ parse(const char *string)
break;
case CTLTYPE_UQUAD:
uquadval = strtouq(newval, NULL, 0);
newval = &quadval;
newsize = sizeof(quadval);
newval = &uquadval;
newsize = sizeof(uquadval);
break;
case CTLTYPE_OPAQUE:
if (strcmp(fmt, "T,dev_t") == 0 ||
Expand Down

0 comments on commit a1417c6

Please sign in to comment.