shithub: riscv

Download patch

ref: 7420dc6adab03f28020243d71a3372cda15cacbc
parent: 58a6b6d6ff5e38e3d166756117851e924adcfb3b
author: ben <ben@rana>
date: Thu Apr 28 07:07:43 EDT 2016

fix unsigned printing for awk

--- a/sys/src/cmd/awk/run.c
+++ b/sys/src/cmd/awk/run.c
@@ -903,8 +903,9 @@
 			break;
 		case 'u':
 			flag = *(s-1) == 'l' ? 2 : 3;
-			*t = 'd';
-			*++t = '\0';
+			*t++ = 'u';
+			*t++ = 'd';
+			*t = '\0';
 			break;				
 		case 'o': case 'x': case 'X':
 			flag = *(s-1) == 'l' ? 2 : 3;