C fixes

Two very minor patches.