]> diplodocus.org Git - nmh/blobdiff - sbr/fmt_compile.c
Refined number of bytes copied to buffer in several places.
[nmh] / sbr / fmt_compile.c
index e34dd4df0f07cd3ad993b83b3351ad63a8c8f69d..97dc1fccb0246339a927e293bf740c77945e05b0 100644 (file)
@@ -163,6 +163,7 @@ static struct ftable functable[] = {
      { "trimr",      TF_EXPR,  FT_LS_TRIM,     0,              TFL_PUTS },
      { "kilo",       TF_EXPR,  FT_LS_KILO,     0,              TFL_PUTS },
      { "kibi",       TF_EXPR,  FT_LS_KIBI,     0,              TFL_PUTS },
+     { "ordinal",    TF_EXPR,   FT_LS_ORDINAL,  0,             TFL_PUTS },
      { "compval",    TF_COMP,  FT_LV_COMP,     0,              TFL_PUTN },
      { "compflag",   TF_COMP,  FT_LV_COMPFLAG, 0,              TFL_PUTN },
      { "num",        TF_NUM,   FT_LV_LIT,      0,              TFL_PUTN },
@@ -663,7 +664,7 @@ do_func(char *sp)
        break;
 
     case TF_MYBOX:
-       LS(t->f_type, getusername());
+       LS(t->f_type, getusername(1));
        break;
 
     case TF_MYNAME: