ds_init_empty (&slices[i].label);
       var_append_value_name (var, &frq->value, &slices[i].label);
-      slices[i].magnetude = frq->count;
+      slices[i].magnitude = frq->count;
     }
 
   return slices;
 
 piechart_plot(const char *title, const struct slice *slices, int n_slices)
 {
   int i;
-  double total_magnetude=0;
+  double total_magnitude=0;
 
   struct chart *ch = chart_create();
 
   chart_write_title(ch, title);
 
   for (i = 0 ; i < n_slices ; ++i )
-    total_magnetude += slices[i].magnetude;
+    total_magnitude += slices[i].magnitude;
 
   for (i = 0 ; i < n_slices ; ++i )
     {
       static double angle=0.0;
 
       const double segment_angle =
-       slices[i].magnetude / total_magnetude * 2 * M_PI ;
+       slices[i].magnitude / total_magnitude * 2 * M_PI ;
 
       const double label_x = centre_x -
        radius * sin(angle + segment_angle/2.0);
 
 /* PSPP - a program for statistical analysis.
-   Copyright (C) 2004 Free Software Foundation, Inc.
+   Copyright (C) 2004, 2009 Free Software Foundation, Inc.
 
    This program is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
 
 struct slice {
   struct string label;
-  double magnetude;
+  double magnitude;
 };
 
 /* Draw a piechart */