=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/dc/inout.c,v retrieving revision 1.1 retrieving revision 1.2 diff -u -r1.1 -r1.2 --- src/usr.bin/dc/inout.c 2003/09/19 17:58:25 1.1 +++ src/usr.bin/dc/inout.c 2003/09/19 19:00:36 1.2 @@ -1,4 +1,4 @@ -/* $OpenBSD: inout.c,v 1.1 2003/09/19 17:58:25 otto Exp $ */ +/* $OpenBSD: inout.c,v 1.2 2003/09/19 19:00:36 deraadt Exp $ */ /* * Copyright (c) 2003, Otto Moerbeek @@ -17,7 +17,7 @@ */ #ifndef lint -static const char rcsid[] = "$OpenBSD: inout.c,v 1.1 2003/09/19 17:58:25 otto Exp $"; +static const char rcsid[] = "$OpenBSD: inout.c,v 1.2 2003/09/19 19:00:36 deraadt Exp $"; #endif /* not lint */ #include @@ -245,7 +245,7 @@ char *p; if (base <= 16) { p = bmalloc(2); - p[0] = num >= 10 ? num + 'A' - 10 : num + '0'; + p[0] = num >= 10 ? num + 'A' - 10 : num + '0'; p[1] = '\0'; } else { if (asprintf(&p, "%0*lu", digits, num) == -1)