X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;ds=sidebyside;f=src%2Fval-labs.c;h=47d1ee65b406d67d839161c0f5ee42fa80dbd986;hb=3c2526641a2e88ff6dec7ea6ae5ffc063daf6957;hp=2fa02e646e06d413b41875cd9ccc207f0fdd2ba5;hpb=4fdeb2145d081ff1b84e3f6c99f9d1c048c0d64a;p=pspp diff --git a/src/val-labs.c b/src/val-labs.c index 2fa02e646e..47d1ee65b4 100644 --- a/src/val-labs.c +++ b/src/val-labs.c @@ -28,6 +28,9 @@ #include "str.h" #include "value-labels.h" #include "var.h" + +#include "gettext.h" +#define _(msgid) gettext (msgid) /* Declarations. */ @@ -154,7 +157,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 {