=================================================================== RCS file: /cvs/mandoc/chars.c,v retrieving revision 1.10 retrieving revision 1.11 diff -u -p -r1.10 -r1.11 --- mandoc/chars.c 2009/10/30 18:43:24 1.10 +++ mandoc/chars.c 2009/10/31 06:10:57 1.11 @@ -1,4 +1,4 @@ -/* $Id: chars.c,v 1.10 2009/10/30 18:43:24 kristaps Exp $ */ +/* $Id: chars.c,v 1.11 2009/10/31 06:10:57 kristaps Exp $ */ /* * Copyright (c) 2009 Kristaps Dzonsons * @@ -91,13 +91,13 @@ chars_init(enum chars type) tab = malloc(sizeof(struct tbl)); if (NULL == tab) { - fprintf(stderr, "memory exhausted\n"); + perror(NULL); exit(EXIT_FAILURE); } htab = calloc(PRINT_HI - PRINT_LO + 1, sizeof(struct ln **)); if (NULL == htab) { - fprintf(stderr, "memory exhausted\n"); + perror(NULL); exit(EXIT_FAILURE); }