]> git.cameronkatri.com Git - mandoc.git/blobdiff - chars.c
Patch on DragonFly BSD syntax (thanks Sascha Wildner).
[mandoc.git] / chars.c
diff --git a/chars.c b/chars.c
index 34b1e9cdc0c8c15cb98f6131e18cbb3160baa477..880a1f6d09dab344911c6ce8a693054181a0ebd0 100644 (file)
--- a/chars.c
+++ b/chars.c
@@ -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 <kristaps@kth.se>
  *
@@ -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);
        }