are you assigning to q the buffer minus the last index (\0') ?char *const q = buffer - 1 + sizeof buffer;
are you assigning to q the buffer minus the last index (\0') ?char *const q = buffer - 1 + sizeof buffer;
Last edited by thames; 11-04-2012 at 07:30 PM.