[haiku-bugs] Re: [Haiku] #6603: [Installer] not enough chars to store translated string (patch)

  • From: "siarzhuk" <trac@xxxxxxxxxxxx>
  • Date: Tue, 14 Sep 2010 13:37:21 -0000

#6603: [Installer] not enough chars to store translated string (patch)
-------------------------------------+--------------------------------------
  Reporter:  diver                   |         Owner:  anevilyak     
      Type:  bug                     |        Status:  reopened      
  Priority:  normal                  |     Milestone:  R1            
 Component:  Applications/Installer  |       Version:  R1/Development
Resolution:                          |      Keywords:                
Blocked By:                          |   Has a Patch:  1             
  Platform:  All                     |      Blocking:                
-------------------------------------+--------------------------------------

Comment (by siarzhuk):

 By the way another potential place for the same problem:

 {{{
 src/kits/tracker/InfoWindow.cpp

 1548                 char capacityStr[16], usedStr[16], freeStr[16];
 1549                 string_for_size(capacity, capacityStr,
 sizeof(capacityStr));
 1550                 string_for_size(capacity - fFreeBytes, usedStr,
 sizeof(usedStr));
 1551                 string_for_size(fFreeBytes, freeStr,
 sizeof(freeStr));

 }}}

 Other occuriences of using "string_for_size" are using either 1024 or 128
 bytes for result buffer. ;-)

-- 
Ticket URL: <http://dev.haiku-os.org/ticket/6603#comment:7>
Haiku <http://dev.haiku-os.org>
Haiku - the operating system.

Other related posts: