VirtualBox

Changeset 34554 in vbox for trunk/src


Ignore:
Timestamp:
Dec 1, 2010 10:32:22 AM (14 years ago)
Author:
vboxsync
Message:

GuestImpl.cpp: Fixed two cases of incorrect RTStrPrintf usage.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/GuestImpl.cpp

    r34552 r34554  
    24002400                     */
    24012401                    char szOutput[RTPATH_MAX];
    2402                     if (RTStrPrintf(szOutput, sizeof(szOutput), "--output=%s", Utf8Dest.c_str()))
     2402                    if (RTStrPrintf(szOutput, sizeof(szOutput), "--output=%s", Utf8Dest.c_str()) >= sizeof(szOutput) - 1)
    24032403                    {
    24042404                        /*
     
    25782578
    25792579            char szMode[16];
    2580             if (RTStrPrintf(szMode, sizeof(szMode), "%o", aMode))
    2581                 args.push_back(Bstr(szMode).raw());
    2582             else
    2583                 rc = setError(VBOX_E_IPRT_ERROR, tr("Error preparing command line"));
     2580            RTStrPrintf(szMode, sizeof(szMode), "%o", aMode);
     2581            args.push_back(Bstr(szMode).raw());
    25842582        }
    25852583        args.push_back(Bstr(Utf8Directory).raw());  /* The directory we want to create. */
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