Skip to content

Commit

Permalink
Merge 169d77c into 5202c78
Browse files Browse the repository at this point in the history
  • Loading branch information
Chocobo1 committed Jan 10, 2015
2 parents 5202c78 + 169d77c commit e5d2d87
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/tools/dump_database.c
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ void *read_input(const char *dir_name, const char *base_name)

len = snprintf(filename, sizeof(filename), "%s" PLAT_SEPARATOR "%s", dir_name, base_name);
if (len + 1 > sizeof(filename)) {
fprintf(stderr, "Too long path %s" PLAT_SEPARATOR "%s", dir_name, base_name);
fprintf(stderr, "Too long path %s" PLAT_SEPARATOR "%s\n", dir_name, base_name);
exit(-1);
}

Expand Down
6 changes: 3 additions & 3 deletions test/testhelper.c
Original file line number Diff line number Diff line change
Expand Up @@ -433,13 +433,13 @@ int internal_has_userphrase(const char *file UNUSED, int line UNUSED,

phone = calloc(MAX_PHONE_SEQ_LEN, sizeof(*phone));
if (!phone) {
fprintf(stderr, "calloc fails at %s:%d", __FILE__, __LINE__);
fprintf(stderr, "calloc fails at %s:%d\n", __FILE__, __LINE__);
goto end;
}

bopomofo_buf = strdup(bopomofo);
if (!bopomofo_buf) {
fprintf(stderr, "strdup fails at %s:%d", __FILE__, __LINE__);
fprintf(stderr, "strdup fails at %s:%d\n", __FILE__, __LINE__);
goto end;
}

Expand Down Expand Up @@ -492,5 +492,5 @@ int exit_status()
void clean_userphrase()
{
if(remove(TEST_HASH_DIR PLAT_SEPARATOR DB_NAME) != 0 && errno != ENOENT)
fprintf(stderr, "remove fails at %s:%d", __FILE__, __LINE__);
fprintf(stderr, "remove fails at %s:%d\n", __FILE__, __LINE__);
}

0 comments on commit e5d2d87

Please sign in to comment.