+ }
+
+ if (label) {
+ /* set new label string */
+
+ if (length >= 0) {
+ /* explicit length */
+ *labelPtr = (char *) malloc(length);
+ if (*labelPtr) {
+memcpy(*labelPtr, label, length);
+ }
The length given by the client is not req
On 28/08/13 08:25, Fredrik Höglund wrote:
On Tuesday 27 August 2013, Timothy Arceri wrote:
V2: fixed indentation of comment
Signed-off-by: Timothy Arceri
---
src/mesa/main/objectlabel.c | 277
src/mesa/main/objectlabel.h | 61 ++
2 file
On Tuesday 27 August 2013, Timothy Arceri wrote:
> V2: fixed indentation of comment
>
> Signed-off-by: Timothy Arceri
> ---
> src/mesa/main/objectlabel.c | 277
>
> src/mesa/main/objectlabel.h | 61 ++
> 2 files changed, 338 insertions(+)
>
V2: fixed indentation of comment
Signed-off-by: Timothy Arceri
---
src/mesa/main/objectlabel.c | 277
src/mesa/main/objectlabel.h | 61 ++
2 files changed, 338 insertions(+)
create mode 100644 src/mesa/main/objectlabel.c
create mode 100644