Skip to content

glRgba uses strncmp where is should have been strncpy #33

@GoogleCodeExporter

Description

@GoogleCodeExporter
The function glRgba in glRgba.cpp is called strncmp instead of strncpy:

GLrgba glRgba (char* string)
{

  long    color;
  char    buffer[10];
  char*   pound;
  GLrgba  result;

  strncmp (buffer, string, 10);
  if (pound = strchr (buffer, '#'))
...


Original issue reported on code.google.com by [email protected] on 15 Jul 2011 at 8:02

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions