From f1b04c40ba9faf9b7b8969cf3686c35bb7b79b33 Mon Sep 17 00:00:00 2001 From: Rodrigo Arias Mallo Date: Tue, 6 Aug 2024 14:15:07 +0200 Subject: Use dStrdup instead of strdup The strdup function is not available in POSIX-2001, so we use our own implementation in dlib: dStrdup. Reviewed-by: dogma --- lout/misc.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'lout/misc.cc') diff --git a/lout/misc.cc b/lout/misc.cc index bffc68f7..c6e057fa 100644 --- a/lout/misc.cc +++ b/lout/misc.cc @@ -32,10 +32,10 @@ namespace misc { const char *prgName = PRGNAME; -void init (int argc, char *argv[]) -{ - prgName = strdup (argv[0]); -} +//void init (int argc, char *argv[]) +//{ +// prgName = dStrdup (argv[0]); +//} // ------------------ -- cgit v1.2.3