ref: 8fea0399b0535193af7c1cba0c7a72c00c146a78
parent: f9b6c4c5a3f10cf4b7166e40b111596c1d6b5102
author: ftrvxmtrx <devnull@localhost>
date: Fri May 2 00:03:35 EDT 2014
bio: on a second thought, make it one line less
--- a/sys/src/libbio/brdstr.c
+++ b/sys/src/libbio/brdstr.c
@@ -3,13 +3,12 @@
#include <bio.h>
static char*
-badd(char *p, int *np, char *data, int ndata, int delim, int nulldelim)
+badd(char *oldp, int *np, char *data, int ndata, int delim, int nulldelim)
{
int n;
- char *oldp;
+ char *p;
n = *np;
- oldp = p;
p = realloc(oldp, n+ndata+1);
if(p){
memmove(p+n, data, ndata);