Code Review
/
src
/
app-framework-binder.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
afb-export: Fix heap corruption
[src/app-framework-binder.git]
/
src
/
afb-export.c
diff --git
a/src/afb-export.c
b/src/afb-export.c
index
b46e6a0
..
2c6522f
100644
(file)
--- a/
src/afb-export.c
+++ b/
src/afb-export.c
@@
-1372,7
+1372,7
@@
static struct afb_export *create(
return NULL;
}
lenapi = strlen(apiname);
return NULL;
}
lenapi = strlen(apiname);
- export = calloc(1, sizeof *export + 1 + lenapi + (path == apiname || !path ? 0 : strlen(path)));
+ export = calloc(1, sizeof *export + 1 + lenapi + (path == apiname || !path ? 0 :
1 +
strlen(path)));
if (!export)
errno = ENOMEM;
else {
if (!export)
errno = ENOMEM;
else {