aboutsummaryrefslogtreecommitdiff
path: root/uxd.c
diff options
context:
space:
mode:
Diffstat (limited to 'uxd.c')
-rw-r--r--uxd.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/uxd.c b/uxd.c
index 59c16e9..4125909 100644
--- a/uxd.c
+++ b/uxd.c
@@ -205,6 +205,9 @@ long parse_number(int opt, const char *s) {
result = strtol(s, &e, 0);
+ /* buglet 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. */
switch(*e) {
case 0: break;
case 'k': result *= 1024L; break;