aboutsummaryrefslogtreecommitdiff
path: root/miscutils/bc.c
diff options
context:
space:
mode:
Diffstat (limited to 'miscutils/bc.c')
-rw-r--r--miscutils/bc.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/miscutils/bc.c b/miscutils/bc.c
index 3d53db778..0200afca2 100644
--- a/miscutils/bc.c
+++ b/miscutils/bc.c
@@ -1322,7 +1322,8 @@ static char* bc_read_file(const char *path)
1322 size_t size = ((size_t) -1); 1322 size_t size = ((size_t) -1);
1323 size_t i; 1323 size_t i;
1324 1324
1325 buf = xmalloc_open_read_close(path, &size); 1325 // Never returns NULL (dies on errors)
1326 buf = xmalloc_xopen_read_close(path, &size);
1326 1327
1327 for (i = 0; i < size; ++i) { 1328 for (i = 0; i < size; ++i) {
1328 char c = buf[i]; 1329 char c = buf[i];