Fix undefined behavior from sequence point rule violations.

Code that looks like

    *dest++ = do_something_with(*dest, ...)

results in defined behavior.  This triggers a warning when using
-Wsequence-point on GCC (which is enabled by -Wall).

Replace any such usages with:

    *dest = do_something_with(*dest, ...);
    dest++;