UFO: Alien Invasion Issue Tracker
Please log in to bookmark issues
OPEN  Bug report #5262  -  Q_vsnprintf: string (...) was truncated (52) - target buffer too small (1)
Posted Jan 06, 2014 - updated Jan 07, 2014
aduke1 (aduke1) has been working on this issue since January 07, 2014 (14:43)
Issue details
  • Type of issue
    Bug report
  • Status
  • Assigned to
  • Type of bug
    Not triaged
  • Likelihood
    Not triaged
  • Effect
    Not triaged
  • Posted by
     Internecivus Raptus
  • Owned by
    Not owned by anyone
  • Estimated time
    Not estimated
  • Category
    Not determined
  • Resolution
  • Priority
    Not determined
  • Reproducability
  • Severity
    Not determined
  • Targetted for
    icon_milestones.png Not determined
  • Complexity
    icon_customdatatype.png Not determined
  • Platform
    icon_customdatatype.png Not determined
  • Architecture
    icon_customdatatype.png Not determined
Issue description
I've got a plenty of those messages in my logs. The source of some of them I recognised, while others I didn't. I think that all these messages appear when I play the game with my own language. First of all, it floods logs when the geoscape map is open in late game. I tried to reproduce it starting new game and I didn't succeded. I will upload savegame that has these messages.

Second, these messages appear when I hover over items in equipment menu and these tooltips are trimmed because length of tooltip is too small. I already explained it in IRC so I just copy-paste from there and format it better.

At first it's adding the ammo description, then for which weapons this ammo is suitable. So we have only 25 chars left - its (128 - $(length of ammo description)). And there it gets trimmed because tooltip length is 128 and it's not enough to fit in size. There goes first Q_vsnprintf warning. Then it tries to add debug info ( x pos / y pos ) and it doesn't fit the size too. So there goes the second warning.
Steps to reproduce this issue
Nothing entered.