VirtualBox

Ignore:
Timestamp:
Aug 22, 2008 10:05:28 AM (16 years ago)
Author:
vboxsync
Message:

Linux additions: shared folders memset fix

Location:
trunk/src/VBox/Additions/linux/sharedfolders
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/linux/sharedfolders/mount.vboxsf.c

    r11545 r11567  
    349349        if (size > 0)
    350350        {
    351             memset (buf, size, 0);
     351            memset (buf, 0, size);
    352352            free (buf);
    353353        }
     
    359359    if (size > 0)
    360360    {
    361         memset (buf, size, 0);
     361        memset (buf, 0, size);
    362362        free (buf);
    363363    }
  • trunk/src/VBox/Additions/linux/sharedfolders/vfsmod.c

    r11512 r11567  
    8484        }
    8585
    86         memset(sf_g, sizeof(*sf_g), 0);
     86        memset(sf_g, 0, sizeof(*sf_g));
    8787
    8888        if (   info->nullchar     != '\0'
     
    9797
    9898            info = &info_compat;
    99             memset(info, sizeof(*info), 0);
     99            memset(info, 0, sizeof(*info));
    100100            memcpy(&info->name, &info_old->name, MAX_HOST_NAME);
    101101            memcpy(&info->nls_name, &info_old->nls_name, MAX_NLS_NAME);
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