Use retval from sprintf while walking buffers
[exim.git] / src / src / smtp_in.c
index 6296342672b238877e910064e1182ba0dca672ab..3d5ad863f7d4e41228cd56b891f44667887c262e 100644 (file)
@@ -2619,10 +2619,7 @@ if (!sender_host_unknown)
             Ustrcat(p, "[ ");
             p += 2;
             for (i = 0; i < opt[1]; i++)
-              {
-              sprintf(CS p, "%2.2x ", opt[i]);
-              p += 3;
-              }
+              p += sprintf(CS p, "%2.2x ", opt[i]);
             *p++ = ']';
             }
           opt += opt[1];