Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
adam.huang
htop
Commits
22b0d7df
Commit
22b0d7df
authored
Mar 26, 2010
by
Hisham Muhammad
Browse files
oops
(Thanks to Bert Wesarg for the heads up)
parent
b4a63409
Changes
1
Hide whitespace changes
Inline
Side-by-side
FunctionBar.c
View file @
22b0d7df
...
...
@@ -52,12 +52,14 @@ FunctionBar* FunctionBar_new(const char** functions, const char** keys, int* eve
this
->
functions
=
malloc
(
sizeof
(
char
*
)
*
15
);
this
->
keys
=
malloc
(
sizeof
(
char
*
)
*
15
);
this
->
events
=
malloc
(
sizeof
(
int
)
*
15
);
for
(
int
i
=
0
;
i
<
15
&&
functions
[
i
];
i
++
)
{
int
i
=
0
;
while
(
i
<
15
&&
functions
[
i
])
{
this
->
functions
[
i
]
=
String_copy
(
functions
[
i
]);
this
->
keys
[
i
]
=
String_copy
(
keys
[
i
]);
this
->
events
[
i
]
=
events
[
i
];
this
->
size
=
i
;
i
++
;
}
this
->
size
=
i
;
}
else
{
this
->
staticData
=
true
;
this
->
functions
=
(
char
**
)(
functions
?
functions
:
FunctionBar_FLabels
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment