Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
freebsd
GitHub Repository: freebsd/freebsd-ports-kde
Path: blob/main/astro/nightfall/files/patch-distribute.c
16461 views
1
--- distribute.c.orig 2012-01-25 13:36:01 UTC
2
+++ distribute.c
3
@@ -36,11 +36,11 @@ static char * build_cmdline(int full)
4
{
5
int i;
6
char temp[512];
7
- size_t size = strlen(program_invocation_name) + 1;
8
+ size_t size = strlen(g_get_prgname()) + 1;
9
size_t len;
10
char * cmdline = malloc(size);
11
12
- strncpy(cmdline, program_invocation_name, size);
13
+ strncpy(cmdline, g_get_prgname(), size);
14
15
if (full)
16
{
17
18