summaryrefslogtreecommitdiff
path: root/src/map/pc.c
diff options
context:
space:
mode:
authorremoitnane <remoit(DOT)nane(AT)gmail(DOT)com>2010-09-05 18:41:32 -0700
committerremoitnane <remoit(DOT)nane(AT)gmail(DOT)com>2010-09-05 18:41:32 -0700
commite2f46583ef4b9fb062b8cf85b2337a893ded5641 (patch)
treeb3a9b978296a487ac41b6a2529f5b3d43cd202a9 /src/map/pc.c
parent729fa55b9d7b7f29c6a152ad6846eac1bc43cdee (diff)
downloadtmwa-e2f46583ef4b9fb062b8cf85b2337a893ded5641.tar.gz
tmwa-e2f46583ef4b9fb062b8cf85b2337a893ded5641.tar.bz2
tmwa-e2f46583ef4b9fb062b8cf85b2337a893ded5641.tar.xz
tmwa-e2f46583ef4b9fb062b8cf85b2337a893ded5641.zip
Clean up NPC string input and minor formatting
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;
}