ref: 6892fe5df6468666edd091b6474d0e56419dc336
parent: 51c4bb568cc58a90551e33576456c99aac5f150f
author: cinap_lenrek <cinap_lenrek@felloff.net>
date: Wed Jun 11 14:01:20 EDT 2014
revert ramfs example the code was correct. erealloc9p() terminates the process on error, but the code was handling realloc() error explicitely and responded the request with Enomem error.
--- a/sys/src/lib9p/ramfs.c
+++ b/sys/src/lib9p/ramfs.c
@@ -53,7 +53,7 @@
count = r->ifcall.count;
if(offset+count >= rf->ndata){- v = erealloc9p(rf->data, offset+count);
+ v = realloc(rf->data, offset+count);
if(v == nil){respond(r, Enomem);
return;
--
⑨