summaryrefslogtreecommitdiff
path: root/src/map/pc.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/map/pc.c')
-rw-r--r--src/map/pc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/map/pc.c b/src/map/pc.c
index 5814c08..869d479 100644
--- a/src/map/pc.c
+++ b/src/map/pc.c
@@ -6908,9 +6908,9 @@ int pc_setregstr (struct map_session_data *sd, int reg, char *str)
nullpo_retr (0, sd);
- if (strlen (str) + 1 >= sizeof (sd->regstr[0].data))
+ if (strlen (str) + 1 > sizeof (sd->regstr[0].data))
{
- printf ("pc_setregstr: string too long !\n");
+ printf ("pc_setregstr(): String too long!\n");
return 0;
}