You're right, so I modified to use asprintf(3) to handle the indeterminate
buffer size.
And there would be exit the process if overflow.
diff --git a/src/hyper/spadint.c b/src/hyper/spadint.c
index fb031fc..771047d 100644
--- a/src/hyper/spadint.c
+++ b/src/hyper/spadint.c
@@ -39,6 +39,9 @@
Yuan Ren wrote:
>
> Hello everyone,
>
> Fixed magic number and buffer overflow in 'start_user_buffer'.
>
> Bests,
> Rey
>
> diff --git a/src/hyper/spadint.c b/src/hyper/spadint.c
> index fb031fc..4e70ac3 100644
> --- a/src/hyper/spadint.c
> +++ b/src/hyper/spadint.c
> @@ -39,6 +39,9 @@
>
Mainly for Ralf ...
--
https://github.com/fricas/fricas/blob/master/src/doc/htex/ug07.htex#L154
REPLACE:
\spadgraph{draw(sin(tan(x)) - tan(sin(x)),x = 10..16)}
BY:
\spadgraph{draw(sin(tan(x)) - tan(sin(x)),x = 10..16,title=="A title here")}
MOTIVATION:
A title
>
> As for "BOOT::|sayFunctionDeps| is undefined" error, it can be fixed
> by following patch,
> after the patch, ")display properties" works:
>
> (1) -> z == 2
>Type: Void
> (2) -> )display properties z
> Properties of z :
>
oldk1331 wrote:
>
> The escape code for bold font is wrong, this was fixed in
> openaxiom a long time ago.
Change to escape code is OK. But note that escape codes
are terminal-specific, code which wants to work on wide
variety of terminals would use terminfo or ncurses.
Concerning turning
On Thu, Jul 12, 2018 at 8:00 AM, Bill Page wrote:
> Actually the message "Semantic Errors" occurs 35 times during a
> normal successful build of FriCAS. Many but not all of these are
> due to something being "BOTH a variable and a literal". Clearly
> these are not really "errors". At most this
Bill Page wrote:
>
> If I use the names 'first' and 'last' in a spad file I get a message:
>
>Semantic Errors:
> [1] last is BOTH a variable and a literal
> [2] first is BOTH a variable and a literal
> ...
>
> What does this mean? In spite of the "semantic error" the
Actually the message "Semantic Errors" occurs 35 times during a normal
successful build of FriCAS. Many but not all of these are due to
something being "BOTH a variable and a literal". Clearly these are not
really "errors". At most this might be just a helpful warning but I
cannot see any
Ralf
1)
Many graphs in chapter seven FriCAS UG do NOT correspond to what announced in
the text (I was preparing a list of patches but you anticipated me).
In 2D graphs this is due to a missing 'title=...' in the invoked command draw
and also due the fact that 'unit=...' shows nothing
> you must make sure that in the control panel you have "units on" and you
> possibly have to scale the size of the window in order to have space for
> tick labelling.
Yes. No problem. Maybe I should add
vp := draw(sin(11*x),x = 0..2*%pi,title == "Large and unit",
unit==[0.2,0.2])
I already had answered this question directly:
works for me perfect:
you must make sure that in the control panel you have "units on" and you
possibly have to scale the size of the window in order to have space for
tick labelling.
Am 12.07.18 um 11:00 schrieb Ralf Hemmecke:
>> IIC the user
> IIC the user guide the draw option unit==[0.2,0.2] should add ticks to
> the axes x and y, but I cannot see anything.
>
> Try eg:
>
> draw(sin(11*x),x = 0..2*%pi,toScale == true,title == "Drawn to scale")
> draw(sin(11*x),x = 0..2*%pi,toScale == true,title == "Drawn to scale and
> unit",
Hello everyone,
Fixed magic number and buffer overflow in 'start_user_buffer'.
Bests,
Rey
diff --git a/src/hyper/spadint.c b/src/hyper/spadint.c
index fb031fc..4e70ac3 100644
--- a/src/hyper/spadint.c
+++ b/src/hyper/spadint.c
@@ -39,6 +39,9 @@
#include "debug.h"
#include
+#include
13 matches
Mail list logo