projects
/
platform
/
upstream
/
curl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b0e7425
)
tool_formparse.c: fix possible use of non-null-terminated strings
author
Marc Hoersken
<info@marc-hoersken.de>
Fri, 18 Apr 2014 22:17:47 +0000
(
00:17
+0200)
committer
Marc Hoersken
<info@marc-hoersken.de>
Fri, 18 Apr 2014 22:17:47 +0000
(
00:17
+0200)
src/tool_formparse.c
patch
|
blob
|
history
diff --git
a/src/tool_formparse.c
b/src/tool_formparse.c
index
d8fc8fd
..
1dcd897
100644
(file)
--- a/
src/tool_formparse.c
+++ b/
src/tool_formparse.c
@@
-150,8
+150,8
@@
int formparse(struct OperationConfig *config,
build a linked list with the info */
char name[256];
char *contents = NULL;
- char type_major[128];
- char type_minor[128];
+ char type_major[128]
= ""
;
+ char type_minor[128]
= ""
;
char *contp;
const char *type = NULL;
char *sep;