Oops, compare just prefix!

SVN revision: 37864
This commit is contained in:
Gustavo Sverzut Barbieri 2008-11-30 05:49:52 +00:00
parent 7e1caa6740
commit 365ac21772
1 changed files with 1 additions and 1 deletions

View File

@ -161,7 +161,7 @@ main(int argc, char **argv)
{
arg = argv[nonargs];
if (strcmp(arg, "file://") == 0)
if (strncmp(arg, "file://", sizeof("file://") - 1) == 0)
arg += sizeof("file://") - 1;
}