The R Project SVN R-packages

Rev

Rev 5040 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 5040 Rev 8167
Line 85... Line 85...
85
fmt_to_string (const struct fmt_spec *f)
85
fmt_to_string (const struct fmt_spec *f)
86
{
86
{
87
  static char buf[32];
87
  static char buf[32];
88
 
88
 
89
  if (formats[f->type].n_args >= 2)
89
  if (formats[f->type].n_args >= 2)
90
    sprintf (buf, "%s%d.%d", formats[f->type].name, f->w, f->d);
90
      snprintf (buf, 32, "%s%d.%d", formats[f->type].name, f->w, f->d);
91
  else
91
  else
92
    sprintf (buf, "%s%d", formats[f->type].name, f->w);
92
      snprintf (buf, 32, "%s%d", formats[f->type].name, f->w);
93
  return buf;
93
  return buf;
94
}
94
}
95
 
95
 
96
int
96
int
97
check_input_specifier (const struct fmt_spec *spec)
97
check_input_specifier (const struct fmt_spec *spec)