dbskkd-cdb-2.00.c.patch 559 B

12345678910111213
  1. --- dbskkd-cdb-2.00_IMPORTED_FROM_SVN/dbskkd-cdb.c.org 2009-02-06 12:00:29.000000000 +0900
  2. +++ dbskkd-cdb-2.00_IMPORTED_FROM_SVN/dbskkd-cdb.c 2015-07-08 21:25:56.142444170 +0900
  3. @@ -84,8 +84,8 @@
  4. unsigned int keylen, datalen;
  5. /* open dictionary cdb file */
  6. - if ((dicfd = open(JISYO_FILE, O_RDONLY, S_IRUSR)) < 0) {
  7. - diesys("cannot open() the dictionary file " JISYO_FILE);
  8. + if ((dicfd = open(argv[1], O_RDONLY, S_IRUSR)) < 0) {
  9. + diesys("cannot open() the dictionary file " argv[1]);
  10. /* NOTREACHED */
  11. }
  12. cdb_init(&diccdb, dicfd);