diff options
author | remoitnane <remoit(DOT)nane(AT)gmail(DOT)com> | 2010-09-05 18:41:32 -0700 |
---|---|---|
committer | remoitnane <remoit(DOT)nane(AT)gmail(DOT)com> | 2010-09-05 18:41:32 -0700 |
commit | e2f46583ef4b9fb062b8cf85b2337a893ded5641 (patch) | |
tree | b3a9b978296a487ac41b6a2529f5b3d43cd202a9 /src/map/pc.c | |
parent | 729fa55b9d7b7f29c6a152ad6846eac1bc43cdee (diff) | |
download | tmwa-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.c | 4 |
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; } |