diff options
| author | Xavier Del Campo Romero <xavi92@disroot.org> | 2026-10-11 01:26:41 +0200 |
|---|---|---|
| committer | Xavier Del Campo Romero <xavi92@disroot.org> | 2026-10-29 00:15:10 +0100 |
| commit | 49d1b87b246f50e5eca25419656188befb4cb85e (patch) | |
| tree | a7d78c859cc1072ad42175eb11a2944e4fdb51f5 /src/prc1/prc1.c | |
| parent | 4ce39e4fc1de9536de7dedfe91b6dee38dec76ae (diff) | |
| download | prc-49d1b87b246f50e5eca25419656188befb4cb85e.tar.gz | |
WIP triplet
Diffstat (limited to 'src/prc1/prc1.c')
| -rw-r--r-- | src/prc1/prc1.c | 7 |
1 files changed, 1 insertions, 6 deletions
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; |
