]> granicus.if.org Git - graphviz/commitdiff
abbreviate a Smyrna path
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Tue, 25 May 2021 14:53:04 +0000 (07:53 -0700)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Mon, 31 May 2021 16:06:24 +0000 (09:06 -0700)
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.

cmd/smyrna/main.c

index 3935b24df04240863810ffcce574756f533234fd..73ddf33dba54cab71869acb0f5b2e489b68df38e 100644 (file)
@@ -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