summaryrefslogtreecommitdiff
path: root/src/char/inter.c
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-07-14 22:19:51 +0300
committerGitHub <noreply@github.com>2016-07-14 22:19:51 +0300
commit79ea125f00a9655ee3aea7c784bd012888f39cf6 (patch)
tree1825fec0dabf8fdb06cc578e640825bae93048f1 /src/char/inter.c
parentb89dd1428b2d357c8bbe016573fb0ab25ade2782 (diff)
parent6c0b298c869913105e4c4d29a6580bf68cd89f55 (diff)
downloadhercules-79ea125f00a9655ee3aea7c784bd012888f39cf6.tar.gz
hercules-79ea125f00a9655ee3aea7c784bd012888f39cf6.tar.bz2
hercules-79ea125f00a9655ee3aea7c784bd012888f39cf6.tar.xz
hercules-79ea125f00a9655ee3aea7c784bd012888f39cf6.zip
Merge pull request #1361 from HerculesWS/coverity-fixes
Fixed various issues reported by coverity
Diffstat (limited to 'src/char/inter.c')
-rw-r--r--src/char/inter.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/char/inter.c b/src/char/inter.c
index d277abec9..756ae32c7 100644
--- a/src/char/inter.c
+++ b/src/char/inter.c
@@ -474,7 +474,7 @@ void mapif_parse_accinfo(int fd)
inter->msg_to_fd(fd, u_fd, aid, "Your query returned the following %d results, please be more specific...",(int)SQL->NumRows(inter->sql_handle));
while ( SQL_SUCCESS == SQL->NextRow(inter->sql_handle) ) {
int class_;
- short base_level, job_level, online;
+ int base_level, job_level, online;
char name[NAME_LENGTH];
SQL->GetData(inter->sql_handle, 0, &data, NULL); account_id = atoi(data);
@@ -546,7 +546,7 @@ void mapif_parse_accinfo2(bool success, int map_fd, int u_fd, int u_aid, int acc
while ( SQL_SUCCESS == SQL->NextRow(inter->sql_handle) ) {
char *data;
int char_id, class_;
- short char_num, base_level, job_level, online;
+ int char_num, base_level, job_level, online;
char name[NAME_LENGTH];
SQL->GetData(inter->sql_handle, 0, &data, NULL); char_id = atoi(data);