projects
/
profile
/
ivi
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fb88eee
)
allocate 1-larger knot array in explode_knot() (Mesa bug 104881)
author
Brian Paul
<brian.paul@tungstengraphics.com>
Tue, 11 Jul 2000 20:39:00 +0000
(20:39 +0000)
committer
Brian Paul
<brian.paul@tungstengraphics.com>
Tue, 11 Jul 2000 20:39:00 +0000
(20:39 +0000)
src/glu/mesa/nurbsutl.c
patch
|
blob
|
history
diff --git
a/src/glu/mesa/nurbsutl.c
b/src/glu/mesa/nurbsutl.c
index
b288258
..
516984b
100644
(file)
--- a/
src/glu/mesa/nurbsutl.c
+++ b/
src/glu/mesa/nurbsutl.c
@@
-1,4
+1,4
@@
-/* $Id: nurbsutl.c,v 1.
2 2000/07/11 14:11:04
brianp Exp $ */
+/* $Id: nurbsutl.c,v 1.
3 2000/07/11 20:39:00
brianp Exp $ */
/*
* Mesa 3-D graphics library
@@
-373,7
+373,7
@@
GLenum explode_knot(knot_str_type * the_knot)
/* alloc space for new_knot */
if (
(new_knot =
- (GLfloat *) malloc(sizeof(GLfloat) * (nknots + n_new_knots))) == NULL) {
+ (GLfloat *) malloc(sizeof(GLfloat) * (nknots + n_new_knots
+ 1
))) == NULL) {
return GLU_OUT_OF_MEMORY;
}
/* fill in new knot */