assign array instead of p++
authorLove Hörnquist Åstrand <lha@kth.se>
Fri, 27 Feb 2009 03:29:39 +0000 (03:29 +0000)
committerLove Hörnquist Åstrand <lha@kth.se>
Fri, 27 Feb 2009 03:29:39 +0000 (03:29 +0000)
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24850 ec53bebd-3082-4978-b11e-865c3cabbd6b

lib/krb5/changepw.c

index 5e2c978ff151e74c2e6f521d73e9adde6a34de17..193fa204c3d0f1cad21a10815dd237b7b193ffea 100644 (file)
@@ -121,12 +121,12 @@ chgpw_send_request (krb5_context context,
 
     len = 6 + ap_req_data.length + krb_priv_data.length;
     p = header;
-    *p++ = (len >> 8) & 0xFF;
-    *p++ = (len >> 0) & 0xFF;
-    *p++ = 0;
-    *p++ = 1;
-    *p++ = (ap_req_data.length >> 8) & 0xFF;
-    *p++ = (ap_req_data.length >> 0) & 0xFF;
+    p[0] = (len >> 8) & 0xFF;
+    p[1] = (len >> 0) & 0xFF;
+    p[2] = 0;
+    p[3] = 1;
+    p[4] = (ap_req_data.length >> 8) & 0xFF;
+    p[5] = (ap_req_data.length >> 0) & 0xFF;
 
     memset(&msghdr, 0, sizeof(msghdr));
     msghdr.msg_name       = NULL;