ref: fe2604df482dc30510d4561efb92b8bff41cf86f
parent: adf887a13b0155f3dae1a7fd2191d6f021b91709
author: Roberto E. Vargas Caballero <k0ga@shike2.com>
date: Sun Jun 28 15:30:45 EDT 2020
driver/posix: Remove unneeded goto
--- a/src/cmd/cc/posix/cc.c
+++ b/src/cmd/cc/posix/cc.c
@@ -108,7 +108,7 @@
len = strlen(arg);
if (len + cnt >= FILENAME_MAX)
- goto too_long;
+ die("cc: pathname too long");
memcpy(buff+cnt, arg, len);
cnt += len;
}
@@ -117,9 +117,6 @@
buff[cnt] = '\0';
return xstrdup(buff);
}
-
-too_long:
- die("cc: pathname too long");
}
static void