Navigation Menu

Skip to content

Commit

Permalink
add missing cast for "%.*s".
Browse files Browse the repository at this point in the history
  • Loading branch information
kou committed Jun 22, 2011
1 parent 85f8e82 commit 9934265
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ha_mroonga.cc
Expand Up @@ -2616,7 +2616,7 @@ int ha_mroonga::wrapper_write_row_index(uchar *buf)
char error_message[MRN_MESSAGE_BUFFER_SIZE];
snprintf(error_message, MRN_MESSAGE_BUFFER_SIZE,
"failed to add a new record into groonga: key=<%.*s>",
GRN_TEXT_LEN(&key), GRN_TEXT_VALUE(&key));
(int)GRN_TEXT_LEN(&key), GRN_TEXT_VALUE(&key));
error = ER_ERROR_ON_WRITE;
my_message(error, error_message, MYF(0));
}
Expand Down Expand Up @@ -2839,7 +2839,7 @@ int ha_mroonga::wrapper_get_record_id(uchar *data, grn_id *record_id,
char error_message[MRN_MESSAGE_BUFFER_SIZE];
snprintf(error_message, MRN_MESSAGE_BUFFER_SIZE,
"%s: key=<%.*s>",
context, GRN_TEXT_LEN(&key), GRN_TEXT_VALUE(&key));
context, (int)GRN_TEXT_LEN(&key), GRN_TEXT_VALUE(&key));
error = ER_ERROR_ON_WRITE;
my_message(error, error_message, MYF(0));
}
Expand Down

0 comments on commit 9934265

Please sign in to comment.