Branch: Tag:

2014-10-21

2014-10-21 01:35:01 by Martin Nilsson <nilsson@opera.com>

snprintf is used lower cased in several places. Use snprintf instead of SNPRINTF.

148:    if(!*mp && strncmp(DEFAULT_MASTER, "NONE/", 5))    {    char tmp[CONSTANT_STRLEN( DEFAULT_MASTER ) + 10 + 10 + 10]; -  SNPRINTF (tmp, sizeof(tmp)-1, +  snprintf (tmp, sizeof(tmp)-1,    DEFAULT_MASTER,    PIKE_MAJOR_VERSION,    PIKE_MINOR_VERSION,
166: Inside #if defined(__NT__)
   char tmp[MAXPATHLEN * 2];    char *p = strrchr (exepath, '\\');    if (p) *p = 0; -  SNPRINTF (tmp, sizeof (tmp), "%s/%s", exepath, mp); +  snprintf (tmp, sizeof (tmp), "%s/%s", exepath, mp);    set_master( tmp );    }    }