diff options
author | B. Watson <urchlay@slackware.uk> | 2024-12-17 03:09:41 -0500 |
---|---|---|
committer | B. Watson <urchlay@slackware.uk> | 2024-12-17 03:09:41 -0500 |
commit | 501c53eefe39f8aa34444a1d2ebfd507662f98fd (patch) | |
tree | 78eb97ee1742b51bfd96668b20dc0398b140f39e /uxd.c | |
parent | 4ca7a660781798fd09455e7818914b810fefdc91 (diff) | |
download | uxd-501c53eefe39f8aa34444a1d2ebfd507662f98fd.tar.gz |
commentary
Diffstat (limited to 'uxd.c')
-rw-r--r-- | uxd.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -205,9 +205,10 @@ long parse_number(int opt, const char *s) { result = strtol(s, &e, 0); - /* buglet here: 100x is correctly rejected, but 100kx is allowed + /* buglets here: 100x is correctly rejected, but 100kx is allowed (the x is ignored). not gonna worry about it. some people might - even make use of it: 100kb or 100Kb will work. */ + even make use of it: 100kb or 100Kb will work. also, a suffix + by itself, like -sk, is accepted (and treated as zero). */ switch(*e) { case 0: break; case 'k': result *= 1024L; break; |