~ubuntu-branches/ubuntu/quantal/open-vm-tools/quantal-201210021442

« back to all changes in this revision

Viewing changes to lib/misc/vthreadBase.c

  • Committer: Bazaar Package Importer
  • Author(s): Serge Hallyn
  • Date: 2011-03-31 14:20:05 UTC
  • mfrom: (1.4.3 upstream)
  • Revision ID: james.westby@ubuntu.com-20110331142005-3n9red91p7ogkweo
Tags: 2011.03.28-387002-0ubuntu1
* Merge latest upstream git tag.  This has the unlocked_ioctl change
  needed to fix dkms build failures (LP: #727342)
* Changes in debian/rules:
  - work around a bug in toolbox/Makefile, where install-exec-hook is
    not happening.  This needs to get fixed the right way.
  - don't install 'vmware-user' which seems to no longer exist
  - move /etc/xdg into open-vm-toolbox (which should be done using .install)
* debian/open-vm-tools.init: add 'modprobe [-r] vmblock'. (LP: #332323)
* debian/rules and debian/open-vm-toolbox.lintian-overrides:
  - Make vmware-user-suid-wrapper suid-root (LP: #332323)

Show diffs side-by-side

added added

removed removed

Lines of Context:
835
835
void
836
836
VThreadBase_SetName(const char *name)  // IN: new name
837
837
{
 
838
   uint32 len = strlen(name);
838
839
   VThreadBaseData *base = VThreadBaseCooked();
839
840
 
840
841
   ASSERT(name);
841
 
   Str_Strcpy(base->name, name, sizeof base->name);
 
842
 
 
843
   if (len >= sizeof base->name) {
 
844
      if (vmx86_debug) {
 
845
         Warning("%s: thread name (%s) exceeds maximum length (%u)\n",
 
846
                 __FUNCTION__, name, (uint32) sizeof base->name -1);
 
847
      }
 
848
 
 
849
      len = sizeof base->name - 1;
 
850
   }
 
851
 
 
852
   memcpy(base->name, name, len);
 
853
   base->name[len] = '\0';
842
854
}
843
855
 
844
856