   } else {
     pad = 0;
   }
-  memcpy(buf+pad, b, l+1);
-  return l+pad;
+  memcpy(&buf[pad], b, l+1);
+  return (l+pad);
 }
 
 int cbPrintInt(char* buf, int n) {

    buffer[offset++] = ':';
    offset += cbPrintInt(&buffer[offset], second(*t), 2);
  }
  buffer[offset++] = 0;
  return offset;
}


int sprintFilename(char* buffer, time_t* t) {
  byte offset = sprintTime(buffer, t, true);
  buffer[offset++] = '.';
  buffer[offset++] = 'C';
  buffer[offset++] = 'S';
  buffer[offset++] = 'V';
  buffer[offset] = 0;
  return offset;
}

