Mercurial > hg > Game > Cerium
changeset 1785:ae8e90890961 draft
minor fix
author | Masataka Kohagura <e085726@ie.u-ryukyu.ac.jp> |
---|---|
date | Fri, 29 Nov 2013 16:21:48 +0900 |
parents | a9ff87220a68 |
children | ba6ffc679a8f |
files | example/regex_mas/main.cc |
diffstat | 1 files changed, 2 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/example/regex_mas/main.cc Fri Nov 29 16:07:12 2013 +0900 +++ b/example/regex_mas/main.cc Fri Nov 29 16:21:48 2013 +0900 @@ -386,13 +386,11 @@ TMmain(TaskManager *manager, int argc, char *argv[]) { - char *filename = 0; - - filename = init(argc, argv); + char *filename = init(argc, argv); int sw_len = strlen((const char*)sword); unsigned char *search_word = (unsigned char*)manager->allocate(sw_len); - memcpy(search_word, (const char*)sword, sw_len + 1); + memcpy(search_word, sword, sw_len + 1); task_init(); st_time = getTime();