X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Foutput%2Fcharts%2Fplot-chart.c;h=3b4f1b377a12a624ceb929d00c617bb4bd581f30;hb=6b003fcaaf12c21fda3d44580154b54c54c6cd54;hp=9978c8c97747a51af578b6173446b11045876075;hpb=43b1296aafe7582e7dbe6c2b6a8b478d7d9b0fcf;p=pspp diff --git a/src/output/charts/plot-chart.c b/src/output/charts/plot-chart.c index 9978c8c977..3b4f1b377a 100644 --- a/src/output/charts/plot-chart.c +++ b/src/output/charts/plot-chart.c @@ -32,23 +32,24 @@ #include -#include #include #include #include - -const char *const data_colour[] = { - "brown", - "red", - "orange", - "yellow", - "green", - "blue", - "violet", - "grey", - "pink" -}; +#include "xalloc.h" + +const char *const data_colour[N_CHART_COLOURS] = + { + "brown", + "red", + "orange", + "yellow", + "green", + "blue", + "violet", + "grey", + "pink" + };