]> ncurses.scripts.mit.edu Git - ncurses.git/blobdiff - ncurses/tinfo/make_hash.c
ncurses 5.9 - patch 20120901
[ncurses.git] / ncurses / tinfo / make_hash.c
index 15c281def50c94746857e83fb70bb64209f0d07e..8fb2538c48f49c0be830022b132021093363d3c6 100644 (file)
@@ -1,5 +1,5 @@
 /****************************************************************************
- * Copyright (c) 1998-2009,2010 Free Software Foundation, Inc.              *
+ * Copyright (c) 1998-2011,2012 Free Software Foundation, Inc.              *
  *                                                                          *
  * Permission is hereby granted, free of charge, to any person obtaining a  *
  * copy of this software and associated documentation files (the            *
@@ -44,7 +44,7 @@
 
 #include <ctype.h>
 
-MODULE_ID("$Id: make_hash.c,v 1.3 2010/05/22 18:02:50 tom Exp $")
+MODULE_ID("$Id: make_hash.c,v 1.8 2012/02/22 22:40:24 tom Exp $")
 
 /*
  *     _nc_make_hash_table()
@@ -261,8 +261,8 @@ main(int argc, char **argv)
               root_name);
        printf("{\n");
        for (n = 0; n < CAPTABSIZE; n++) {
-           sprintf(buffer, "\"%s\"",
-                   name_table[n].nte_name);
+           _nc_SPRINTF(buffer, _nc_SLIMIT(sizeof(buffer)) "\"%s\"",
+                       name_table[n].nte_name);
            printf("\t{ %15s,\t%10s,\t%3d, %3d }%c\n",
                   buffer,
                   typenames[name_table[n].nte_type],