FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

dirlisting: fix bug when displaying file size in dirlisting by gnoliyil · Pull Request #281 · monkey/monkey · GitHub

/ monkey Public

dirlisting: fix bug when displaying file size in dirlisting - #281

Open
gnoliyil wants to merge 1 commit into
monkey:1.6from
gnoliyil:v169
Open

dirlisting: fix bug when displaying file size in dirlisting#281
gnoliyil wants to merge 1 commit into
monkey:1.6from
gnoliyil:v169

Conversation

Copy link
Copy Markdown
  • type of file size (len) changed to size_t from int to support file larger than 2G
  • fix a bug of size unit display

* type of file size (len) changed to size_t from int to support file larger than 2G
* fix a bug of size unit display

/* Function wrote by Max (Felipe Astroza), thanks! */
static char *mk_dirhtml_human_readable_size(char *buf, size_t size, int len)
static char *mk_dirhtml_human_readable_size(char *buf, size_t size, size_t len)

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Maybe rename size to buf_size to avoid this sort of problem.
And len to file_len or file_size (look more english).

This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants


Back | FazBrowse Home | New Git URL