VirtualBox

Changeset 5401 in vbox for trunk/src


Ignore:
Timestamp:
Oct 21, 2007 4:49:55 PM (17 years ago)
Author:
vboxsync
Message:

gcc warning

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Network/slirp/tftp.c

    r5295 r5401  
    314314  /* do sanity checks on the filename */
    315315
    316   if (   !strncmp(spt->filename, "../", 3)
     316  if (   !strncmp((const char*)spt->filename, "../", 3)
    317317      || (spt->filename[strlen((const char *)spt->filename) - 1] == '/')
    318       ||  strstr((char *)spt->filename, "/../")) {
     318      ||  strstr((const char *)spt->filename, "/../")) {
    319319      tftp_send_error(pData, spt, 2, "Access violation", tp);
    320320      return;
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette