Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Dustin L. Howett
oligos
Commits
58323246
Commit
58323246
authored
Dec 13, 2013
by
Dustin L. Howett
Browse files
The more important check here is that msgbuf contains something, not that it exists.
parent
903da688
Changes
1
Hide whitespace changes
Inline
Side-by-side
event.cc
View file @
58323246
...
...
@@ -59,7 +59,7 @@ _EVENT(PRIVMSG) {
int
argc
=
0
;
int
nargmax
=
1
;
char
**
argv
=
(
char
**
)
calloc
(
nargmax
,
sizeof
(
char
*
));
if
(
msgbuf
)
{
if
(
msgbuf
&&
*
msgbuf
!=
'\0'
)
{
int
argstart
=
0
;
for
(
unsigned
int
i
=
0
;
i
<=
strlen
(
msgbuf
);
++
i
)
{
if
(
msgbuf
[
i
]
==
' '
||
msgbuf
[
i
]
==
'\0'
)
{
...
...
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