sthen 8c8d482a19 update to lastpass-cli 0.7.0, from Björn Ketelaars, add NO_TEST and
fix format strong (%lld for "long long" time_t cast) while there
2015-11-16 21:00:00 +00:00

16 lines
530 B
Plaintext

$OpenBSD: patch-upload-queue_c,v 1.2 2015/11/16 21:00:00 sthen Exp $
cope with 64-bit time_t on 32-bit arches
--- upload-queue.c.orig Thu Nov 12 20:36:55 2015
+++ upload-queue.c Mon Nov 16 20:56:47 2015
@@ -75,7 +75,7 @@ static void upload_queue_write_entry(const char *entry
for (serial = 0; serial < ULONG_MAX; ++serial) {
free(name);
- xasprintf(&name, "upload-queue/%lu%lu", time(NULL), serial);
+ xasprintf(&name, "upload-queue/%lld%lu", (long long)time(NULL), serial);
if (!config_exists(name))
break;
}