From: Matthew Fernandez Date: Tue, 25 May 2021 14:53:04 +0000 (-0700) Subject: abbreviate a Smyrna path X-Git-Tag: 2.47.3~20^2~1 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=328c7d9269908d9aae8de6d837644dfdafdbd677;p=graphviz abbreviate a Smyrna path SMYRNA is defined to the same string, so this makes no functional difference. However, it makes the preceding allocation clearer in what it is doing. --- diff --git a/cmd/smyrna/main.c b/cmd/smyrna/main.c index 3935b24df..73ddf33db 100644 --- a/cmd/smyrna/main.c +++ b/cmd/smyrna/main.c @@ -224,7 +224,7 @@ int main(int argc, char *argv[]) smyrnaDir = N_NEW(strlen(line)+sizeof(SMYRNA), char); strcpy (smyrnaDir, line); - strcat(smyrnaDir, "\\share\\graphviz\\smyrna"); + strcat(smyrnaDir, SMYRNA); #else smyrnaDir = SMYRNA_PATH; #endif