Skip to content

Commit

Permalink
Optimize read a little more, add merch link
Browse files Browse the repository at this point in the history
  • Loading branch information
Slackadays committed Feb 15, 2023
1 parent f2ce16e commit 5ccd3f2
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion documentation/website/config.toml
Expand Up @@ -23,7 +23,8 @@ render_emoji = true
juice_logo_name = "Clipboard"
juice_logo_path = "cb_small.png"
juice_extra_menu = [
{ title = "Github", link = "https://github.com/Slackadays/Clipboard" },
{ title = "GitHub", link = "https://github.com/Slackadays/Clipboard" },
{ title = "Discord", link = "https://discord.gg/jc7bcEeR" },
{ title = "Merch", link = "https://open-source-zone.creator-spring.com" },
]
repository_url = "https://github.com/Slackadays/Clipboard"
2 changes: 1 addition & 1 deletion documentation/website/templates/index.html
Expand Up @@ -16,7 +16,7 @@ <h3 class="title-text">
</a>
</div>
</section>
<img class="hero-image" style="width: 50%" src="{{ get_url(path="demo.png") }}">
<img class="hero-image" style="width: 55%" src="{{ get_url(path="demo.png") }}">

<div class="explore-more text" onclick="document.getElementById('features').scrollIntoView({behavior: 'smooth'})">
Explore More โ‡ฉ
Expand Down
2 changes: 1 addition & 1 deletion src/clipboard/src/clipboard.cpp
Expand Up @@ -101,7 +101,7 @@ std::string fileContents(const fs::path& path) {
std::string pipedInContent() {
std::string content;
#if !defined(_WIN32) && !defined(_WIN64)
std::array<char, 65535> buffer;
std::array<char, 65536> buffer;
int len = -1;
while (len != 0) {
len = read(fileno(stdin), buffer.data(), buffer.size());
Expand Down

0 comments on commit 5ccd3f2

Please sign in to comment.