Fix build on 32bits

This commit is contained in:
bapt 2015-08-02 13:50:11 +00:00
parent 2c026ebb5c
commit 069c5cd075

View File

@ -493,11 +493,11 @@ write_userconfig(struct userconf *cnf, const char *file)
quote = 0;
break;
case _UC_EXPIRE:
sbuf_printf(buf, "%ld", cnf->expire_days);
sbuf_printf(buf, "%lld", (long long)cnf->expire_days);
quote = 0;
break;
case _UC_PASSWORD:
sbuf_printf(buf, "%ld", cnf->password_days);
sbuf_printf(buf, "%lld", (long long)cnf->password_days);
quote = 0;
break;
case _UC_NONE: