Utilise the passed output filename rather that using a hardcoded name

This commit is contained in:
sevan 2018-04-29 19:28:11 +00:00
parent 7fbf6189d2
commit 00192c93dd
1 changed files with 1 additions and 1 deletions

View File

@ -161,7 +161,7 @@ l_encrypt_file(lua_State *L)
}
armour = findtype(armourtypes, luaL_checkstring(L, 4));
ret = netpgp_encrypt_file(netpgp, netpgp_getvar(netpgp, "userid"),
f, __UNCONST("a.gpg"), armour);
f, __UNCONST(output), armour);
lua_pushnumber(L, ret);
return 1;
}