things that are important: not trying to pass off a format string as a buffer size in snprintf :)

SVN revision: 50288
This commit is contained in:
Mike Blumenkrantz 2010-07-16 20:39:17 +00:00
parent 5005200d84
commit 3b66bd0ff9
1 changed files with 1 additions and 1 deletions

View File

@ -28,7 +28,7 @@ _elm_dangerous_call_check(const char *call)
char buf[256];
const char *eval;
snprintf(buf, "%i.%i.%i.%i", VMAJ, VMIN, VMIC, VREV);
snprintf(buf, sizeof(buf), "%i.%i.%i.%i", VMAJ, VMIN, VMIC, VREV);
eval = getenv("ELM_NO_FINGER_WAGGLING");
if ((eval) && (!strcmp(eval, buf)))
return 0;