   } 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) {

    }
    buf[offset++] = (char)(dir.name[i]);
  }
  buf[offset++] = 0;
  return offset;
}

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

