Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Wynn
purr-data
Commits
e609134d
Commit
e609134d
authored
Jun 22, 2008
by
Miller Puckette
Browse files
pd~ bug fix
parent
2c0a4993
Changes
1
Hide whitespace changes
Inline
Side-by-side
extra/pd~/pd~.c
View file @
e609134d
...
...
@@ -719,10 +719,12 @@ static void *pd_tilde_new(t_symbol *s, long ac, t_atom *av)
if
(
av
->
a_type
==
A_SYM
)
strncat
(
pdargstring
,
av
->
a_w
.
w_sym
->
s_name
,
MAXPDSTRING
-
strlen
(
pdargstring
)
-
3
);
else
if
(
av
->
a_type
==
A_LONG
)
snprintf
(
buf
+
strlen
(
buf
),
MAXPDSTRING
-
strlen
(
pdargstring
)
-
3
,
"%ld"
,
av
->
a_w
.
w_long
);
snprintf
(
pdargstring
+
strlen
(
pdargstring
),
MAXPDSTRING
-
strlen
(
pdargstring
)
-
3
,
"%ld"
,
av
->
a_w
.
w_long
);
else
if
(
av
->
a_type
==
A_FLOAT
)
snprintf
(
buf
+
strlen
(
buf
),
MAXPDSTRING
-
strlen
(
pdargstring
)
-
3
,
"%f"
,
av
->
a_w
.
w_float
);
strcat
(
buf
,
" "
);
snprintf
(
pdargstring
+
strlen
(
pdargstring
),
MAXPDSTRING
-
strlen
(
pdargstring
)
-
3
,
"%f"
,
av
->
a_w
.
w_float
);
strcat
(
pdargstring
,
" "
);
av
++
;
}
post
(
"pd~: pddir %s scheddir %s args %s"
,
...
...
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