X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fdata-in.c;h=3a49fa23706e8537881c204ffaeb9f83b99204d7;hb=2e02472cf15ddb64c33a1477cf4cfbf3be2d0c95;hp=8f36dcb046d298c3e431b59fc53617c939ca4113;hpb=1339492699ce7e12c9bf9fa17f9d60a66024cbd1;p=pspp diff --git a/src/data-in.c b/src/data-in.c index 8f36dcb046..3a49fa2370 100644 --- a/src/data-in.c +++ b/src/data-in.c @@ -468,7 +468,7 @@ parse_IB (struct data_in *i) p = i->s; #else memcpy (buf, i->s, i->e - i->s); - mm_reverse (buf, i->e - i->s); + buf_reverse (buf, i->e - i->s); p = buf; #endif @@ -760,7 +760,7 @@ parse_enum (struct data_in *i, const char *what, if ((ep->can_abbreviate && lex_id_match_len (ep->name, strlen (ep->name), name, length)) || (!ep->can_abbreviate && length == strlen (ep->name) - && !mm_case_compare (name, ep->name, length))) + && !buf_compare_case (name, ep->name, length))) { *output = ep->value; return true; @@ -1363,6 +1363,8 @@ data_in (struct data_in *i) { const struct fmt_desc *const fmt = &formats[i->format.type]; + assert (check_input_specifier (&i->format, 0)); + /* Check that we've got a string to work with. */ if (i->e == i->s || i->format.w <= 0) {