VirtualBox

Changeset 72804 in vbox


Ignore:
Timestamp:
Jul 3, 2018 12:20:29 AM (6 years ago)
Author:
vboxsync
Message:

Main/GuestSessionImpl: fix edito in previous, caught by -Wnonnull

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/src-client/GuestSessionImpl.cpp

    r72070 r72804  
    890890
    891891            const char * const pszComma = strchr(pszNext, ',');
    892             size_t cchKeyword = pszComma ? pszComma - pszNext : strlen(pszComma);
     892            size_t cchKeyword = pszComma ? pszComma - pszNext : strlen(pszNext);
    893893            while (cchKeyword > 0 && RT_C_IS_SPACE(pszNext[cchKeyword - 1]))
    894894                cchKeyword--;
     
    13571357
    13581358            const char * const pszComma = strchr(pszNext, ',');
    1359             size_t cchKeyword = pszComma ? pszComma - pszNext : strlen(pszComma);
     1359            size_t cchKeyword = pszComma ? pszComma - pszNext : strlen(pszNext);
    13601360            while (cchKeyword > 0 && RT_C_IS_SPACE(pszNext[cchKeyword - 1]))
    13611361                cchKeyword--;
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