From cab0135f57ca1c7e448e11f866b0adb8a1328d48 Mon Sep 17 00:00:00 2001 From: Xavier Del Campo Romero Date: Sun, 11 Oct 2026 01:26:41 +0200 Subject: WIP triplet --- src/prc1/prc1.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'src/prc1/prc1.c') diff --git a/src/prc1/prc1.c b/src/prc1/prc1.c index 634608b..bd481c1 100644 --- a/src/prc1/prc1.c +++ b/src/prc1/prc1.c @@ -41,13 +41,8 @@ int main(int argc, char *argv[]) fname = args.src; } - if (!(l.loc.f = malloc(strlen(fname) + 1))) - { - perror("malloc(3)"); + if (!(l.loc.f = sdup(fname))) goto end; - } - else - strcpy(l.loc.f, fname); l.args = a.args = &args; -- cgit v1.2.3