freetype-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[freetype2-demos] master 5f41047 2/2: * src/ftlint.c (main): Use `ft_bas


From: Werner Lemberg
Subject: [freetype2-demos] master 5f41047 2/2: * src/ftlint.c (main): Use `ft_basename'.
Date: Sun, 20 Jun 2021 22:56:24 -0400 (EDT)

branch: master
commit 5f410476f6ac026d2a7a1f73b5dd329952d79f04
Author: Alexei Podtelezhnikov <apodtele@gmail.com>
Commit: Alexei Podtelezhnikov <apodtele@gmail.com>

    * src/ftlint.c (main): Use `ft_basename'.
---
 ChangeLog    | 4 ++++
 src/ftlint.c | 3 ++-
 2 files changed, 6 insertions(+), 1 deletion(-)

diff --git a/ChangeLog b/ChangeLog
index 3402b2b..eefab76 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
 2021-06-20  Alexei Podtelezhnikov  <apodtele@gmail.com>
 
+       * src/ftlint.c (main): Use `ft_basename'.
+
+2021-06-20  Alexei Podtelezhnikov  <apodtele@gmail.com>
+
        [ftlint] Improve error handling.
 
        * src/ftlint.c (main): Never panic, call `Error', and proceed.
diff --git a/src/ftlint.c b/src/ftlint.c
index a668a2a..b14a86c 100644
--- a/src/ftlint.c
+++ b/src/ftlint.c
@@ -22,6 +22,7 @@
 #include <stdlib.h>
 #include <limits.h>
 
+#include "common.h"
 #include "md5.h"
 
 #ifdef UNIX
@@ -161,7 +162,7 @@
     int           quiet = 0;
 
 
-    execname = argv[0];
+    execname = ft_basename( argv[0] );
 
     if ( argc < 3 )
       Usage( execname );



reply via email to

[Prev in Thread] Current Thread [Next in Thread]