Skip to content

Commit

Permalink
chore(crypt): rlimits defines
Browse files Browse the repository at this point in the history
  • Loading branch information
neverbot committed May 1, 2024
1 parent 1a1f4b5 commit a335bf1
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions mudlib/packages/crypt/cmds/admin/crypt.c
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,8 @@

inherit CMD_BASE;

#define MAX_ARRAY 1000
#define CRYPT_MAX_DEPTH 100
#define CRYPT_MAX_TICKS 10000000

/* last character of header MUST be '\n' */
/* Don't change the HEADER or else you won't be able to uncrypt files! */
Expand Down Expand Up @@ -283,7 +284,7 @@ int get_key2(mixed key)

tmpkey = 0;

rlimits(100; 10000000)
rlimits(CRYPT_MAX_DEPTH; CRYPT_MAX_TICKS)
{
if (file_crypt(key, !crypt, name, newname))
{
Expand Down

0 comments on commit a335bf1

Please sign in to comment.