X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;ds=inline;f=src%2Fsysfile-info.c;h=a9f074ab3be2ae6838f76ddd42afe1298fbf0d88;hb=1e06be73a426544652cdd7d73f001c962bac1a34;hp=85344847af80a66d737ff5306e9c51b912081ca2;hpb=6eea9310493902d3b06b25c612c7ba89d467b6fa;p=pspp diff --git a/src/sysfile-info.c b/src/sysfile-info.c index 85344847af..a9f074ab3b 100644 --- a/src/sysfile-info.c +++ b/src/sysfile-info.c @@ -29,6 +29,7 @@ #include "file-handle.h" #include "hash.h" #include "lexer.h" +#include "magic.h" #include "misc.h" #include "output.h" #include "sfm-read.h" @@ -97,7 +98,7 @@ cmd_sysfile_info (void) t = tab_create (2, 9, 0); tab_vline (t, TAL_1 | TAL_SPACING, 1, 0, 8); tab_text (t, 0, 0, TAB_LEFT, _("File:")); - tab_text (t, 1, 0, TAB_LEFT, handle_get_filename (h)); + tab_text (t, 1, 0, TAB_LEFT, fh_get_filename (h)); tab_text (t, 0, 1, TAB_LEFT, _("Label:")); { const char *label = dict_get_label (d); @@ -575,7 +576,7 @@ display_vectors (int sorted) return; } - vl = xmalloc (sizeof *vl * nvec); + vl = xnmalloc (nvec, sizeof *vl); for (i = 0; i < nvec; i++) vl[i] = dict_get_vector (default_dict, i); if (sorted)