Skip to contentSkip to conversation

rmc: fix wrong error message

PATCH New Jianxun Zhang 1 participant 1 message Aug 16, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 rmc: fix wrong error message

---
 src/rmc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
src/rmc.c +1 -1
index 6cf584e..7f63c59 100644
@@ -112,7 +112,7 @@ static int read_file(const char *pathname, char **data, size_t* len) {
 
     while (byte < total) {
         if ((tmp = read(fd, buf + byte, total - byte)) < 0) {
-            perror("rmc: failed to alloc read buf");
+            perror("rmc: failed to read file");
             free(buf);
             close(fd);
             return 1;
Signature · 1 line
2.7.4