UFO: Alien Invasion Issue Tracker
UFO: Alien Invasion
Go to the previous open issue
Go to the previous issue (open or closed)
star_faded.png
Please log in to bookmark issues
icon_project.png UFO: Alien Invasion / Closed Bug report #1922 startup bug Q_strncpyz: NULL src
Go to the next issue (open or closed)
Go to the next open issue
There are no more issues in that direction.
This issue has been closed with status "Closed" and resolution "Not determined".
Issue basics
  • Type of issue
    Bug report
  • Category
    General
  • Targetted for
    Not determined
  • Status
    Closed
  • Priority
    3. Normal
User pain
  • Type of bug
    Not triaged
  • Likelihood
    Not triaged
  • Effect
    Not triaged
Affected by this issue (0)
There are no items
People involved
Times and dates
  • Posted at
  • Last updated
  • Estimated time
    Not estimated
Issue details
  • Resolution
    Not determined
  • Reproducability
    Not determined
  • Severity
    Not determined
  • Complexity
    Not determined
  • Platform
    Not determined
  • Architecture
    Not determined
Attachments (0)
There is nothing attached to this issue
Duplicate issues (0)
This issue does not have any duplicates
Description
[http://sourceforge.net/p/ufoai/bugs/1922 Item 1922] imported from sourceforge.net tracker on 2013-01-28 19:14:56

Sorry, my english very bad.

I had a problem at the first start of game. Details in a file.
===== Comments Ported from Sourceforge =====

====== nobody (2008-12-03 12:44:14) ======

programm output and more
====== richlv (2008-12-16 12:02:04) ======

amtep, maybe you can shed some light ?
adding parts from pdf that seemed relevant to me (note that source snippet has printf lines added) :

executing autoexec.cfg
"version" is "UFO: Alien Invasion 2.3-dev i386 Dec 3 2008 Linux DEBUG"
S_Music_Start: Playing music: 'music/van_theme'
R_RegisterModelShort: Could not find: 'weapons/autocannon/autocannon'
Could not find menu 'market' as requested by menumodel 'craft_shield_polymer'
---------------
1. ru_RU.UTF-8
2. 64
3. @��
��2
�3��0n ��2
m?
5. (null)
---------------
Wrote keys.cfg
Error: Q_strncpyz: NULL src (src/client/cl_language.c, 237)
grub@grub:~/data/games/ufoai/ufoai$ grub@grub:~/data/games/ufoai/ufoai/src$


src/client/cl_language.c code (Modified):



/**
* @brief Fills the options language menu node with the parsed language mappings
* @sa CL_InitAfter
* @sa CL_LocaleSet
*/
void CL_LanguageInit (void)
{
int i;
menu_t* menu;
menuNode_t* languageOptions;
selectBoxOptions_t* selectBoxOption;
language_t* language;
char systemLanguage[MAX_VAR];
if (s_language->string[0] != '\0') {
Com_Printf("CL_LanguageInit: language settings are stored in configuration: %s\n", s_language->string);
Q_strncpyz(systemLanguage, s_language->string, sizeof(systemLanguage));
} else {
const char *currentLocale = Sys_GetLocale();

printf("---------------\n") ;
printf("1. %s\n", currentLocale) ;
printf("2. %d\n", sizeof(systemLanguage)) ;
printf("3. %s\n", systemLanguage) ;
printf("5. %s\n", CL_GetLocaleID(currentLocale) ) ;
printf("---------------\n") ;

if (currentLocale)
Q_strncpyz(systemLanguage, CL_GetLocaleID(currentLocale), sizeof(systemLanguage)); // line 237
else
systemLanguage[0] = '\0';
}
Com_DPrintf(DEBUG_CLIENT, "CL_LanguageInit: system language is: '%s'\n", systemLanguage);

====== nobody (2008-12-19 07:10:23) ======

isn't this fixed already?
====== geever (2009-04-07 19:09:36) ======

I think it's fixed. If not, it can be reopened.

-geever
Steps to reproduce this issue
Nothing entered.
Todos (0 / 0)
Issue created
footer_logo.png The Bug Genie 4.3.1 | Support | Feedback spinning_16.gif