Add a comment and update another one

This commit is contained in:
Přemysl Eric Janouch 2020-10-18 21:09:03 +02:00
parent 6c2ae2f6bb
commit 9928eca274
Signed by: p
GPG Key ID: A0420B94F92B9493

View File

@ -82,6 +82,9 @@ enum
// ncurses is notoriously retarded for input handling, we need something
// different if only to receive mouse events reliably.
//
// 2020 update: ncurses is mostly reliable now but rxvt-unicode needs to start
// supporting 1006, or ncurses needs to start supporting the 1015 mode.
#include "termo.h"
@ -3360,6 +3363,7 @@ mpd_read_time (const char *value, int *sec, int *optional_msec)
unsigned long n = strtoul (period + 1, &end, 10);
if (*end)
return;
// XXX: this relies on three decimal places
*optional_msec = MIN (INT_MAX, n);
}
unsigned long n = strtoul (value, &end, 10);