We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6594ceb commit 23c6fbaCopy full SHA for 23c6fba
src/gnome-ask-password-agent.vala
@@ -156,8 +156,9 @@ public class MyStatusIcon : StatusIcon {
156
clock_gettime(1, out ts);
157
uint64 now = (ts.tv_sec * 1000000) + (ts.tv_nsec / 1000);
158
159
- uint64 not_after;
160
- if (not_after_as_string.scanf("%llu", out not_after) != 1)
+ uint64 not_after = uint64.parse(not_after_as_string);;
+ if ((not_after == 0 && GLib.errno == Posix.EINVAL) ||
161
+ (not_after == int64.MAX && GLib.errno == Posix.ERANGE))
162
return false;
163
164
if (not_after > 0 && not_after < now)
0 commit comments