From 8f3048a1f838484babc4948754c16dda8f53daf1 Mon Sep 17 00:00:00 2001 From: Ebrahim Byagowi Date: Mon, 15 Oct 2018 12:16:47 +0330 Subject: [PATCH] [dump-emoji] minor --- src/dump-emoji.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/dump-emoji.cc b/src/dump-emoji.cc index f14dbdbf2..f45bc3106 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]);