#49: I found one memory overflow and memory leak in "ln" applet. Last patch reduced also 54 bytes. ;) #50: I found bug in loginutils/Makefile.in. New patch have also new function to libbb and aplied this to applets and other cosmetic changes.
This commit is contained in:
@ -38,8 +38,7 @@ extern char *concat_path_file(const char *path, const char *filename)
|
||||
lc = last_char_is(path, '/');
|
||||
while (*filename == '/')
|
||||
filename++;
|
||||
outbuf = xmalloc(strlen(path)+strlen(filename)+1+(lc==NULL));
|
||||
sprintf(outbuf, "%s%s%s", path, (lc==NULL)? "/" : "", filename);
|
||||
bb_asprintf(&outbuf, "%s%s%s", path, (lc==NULL)? "/" : "", filename);
|
||||
|
||||
return outbuf;
|
||||
}
|
||||
|
Reference in New Issue
Block a user