X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fpfm-read.c;h=4d95eba22ae3a05b7ff716c3d7dfb96c9fcb2025;hb=c434e369b6695f8135a2914e9a425edcdd09ef35;hp=7967926e600c0cb33a99859f487b85eac1483d48;hpb=317e6b778833b5dcd5dd195c0b677835a8024b2a;p=pspp diff --git a/src/pfm-read.c b/src/pfm-read.c index 7967926e60..4d95eba22a 100644 --- a/src/pfm-read.c +++ b/src/pfm-read.c @@ -408,7 +408,7 @@ read_header (struct pfm_reader *r) static void read_version_data (struct pfm_reader *r, struct pfm_read_info *info) { - char *date, *time, *product, *subproduct; + char *date, *time, *product, *author, *subproduct; int i; /* Read file. */ @@ -417,6 +417,7 @@ read_version_data (struct pfm_reader *r, struct pfm_read_info *info) date = read_pool_string (r); time = read_pool_string (r); product = match (r, '1') ? read_pool_string (r) : (unsigned char *) ""; + author = match (r, '2') ? read_pool_string (r) : (unsigned char *) ""; subproduct = match (r, '3') ? read_pool_string (r) : (unsigned char *) ""; @@ -522,7 +523,7 @@ read_variables (struct pfm_reader *r, struct dictionary *dict) fmt[j] = read_int (r); if (!var_is_valid_name (name, false) || *name == '#' || *name == '$') - error (r, _("position %d: Invalid variable name `%s'."), name); + error (r, _("position %d: Invalid variable name `%s'."), i, name); str_uppercase (name); if (width < 0 || width > 255)