summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEbrahim Byagowi <ebrahim@gnu.org>2018-10-15 12:16:47 +0330
committerGitHub <noreply@github.com>2018-10-15 12:16:47 +0330
commit8f3048a1f838484babc4948754c16dda8f53daf1 (patch)
tree6ad005277d9fac0316128033cc3e264516432f90
parent27e095a613ed0a753231405cab887da19e9aecd1 (diff)
[dump-emoji] minor
-rw-r--r--src/dump-emoji.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/dump-emoji.cc b/src/dump-emoji.cc
index f14dbdbf..f45bc310 100644
--- a/src/dump-emoji.cc
+++ b/src/dump-emoji.cc
@@ -212,8 +212,8 @@ int main (int argc, char **argv)
{
if (argc != 2) {
fprintf (stderr, "usage: %s font-file.ttf\n"
- "run it like `rm -rf out && mkdir out && src/dump-emoji font-file.ttf`\n",
- argv[0]);
+ "run it like `rm -rf out && mkdir out && %s font-file.ttf`\n",
+ argv[0], argv[0]);
exit (1);
}
@@ -231,7 +231,7 @@ int main (int argc, char **argv)
fprintf (stderr, "./out is not accessible, create it please\n");
exit (1);
}
- fwrite (argv[0], 1, strlen (argv[1]), font_name_file);
+ fwrite (argv[1], 1, strlen (argv[1]), font_name_file);
fclose (font_name_file);
hb_blob_t *blob = hb_blob_create_from_file (argv[1]);