tech-userlevel archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: rpcgen(1), issues with System XVI



On Sep 20,  5:12pm, n54%gmx.com@localhost (Kamil Rytarowski) wrote:
-- Subject: Re: rpcgen(1), issues with System XVI

| I didn't want to be better the the rest of this file, eg:
| 
|         res = alloc(strlen(file) + strlen(ext) + 1);
|         if (res == NULL) {
|                 errx(1, "Out of memory");
|         }
| 
| 
| Where rpc_util.h contains:
| #define alloc(size)		((char *)malloc((size_t)(size)))
| 
| However there are places when we check for it and use EXIT_FAILURE.
| 
| I rediffed the patch. I also changed the parsing logic for the file
| extension - stop at the final dot and leave the rest as it is, since
| it will be truncated later.

Just commit it and we'll make it better later.

christos


Home | Main Index | Thread Index | Old Index