X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fval-labs.c;h=3dc4254f6d1c74ad89d37a623578c8244f17b152;hb=9a53bbba50470f8752b8343e597fcc5a81cb1da3;hp=2fa02e646e06d413b41875cd9ccc207f0fdd2ba5;hpb=4fdeb2145d081ff1b84e3f6c99f9d1c048c0d64a;p=pspp diff --git a/src/val-labs.c b/src/val-labs.c index 2fa02e646e..3dc4254f6d 100644 --- a/src/val-labs.c +++ b/src/val-labs.c @@ -154,7 +154,7 @@ get_label (struct variable **vars, int var_cnt) lex_error (_("expecting string")); return 0; } - st_bare_pad_copy (value.s, ds_c_str (&tokstr), MAX_SHORT_STRING); + buf_copy_str_rpad (value.s, MAX_SHORT_STRING, ds_c_str (&tokstr)); } else {