MantisBT - Zandronum | |||||
View Issue Details | |||||
ID | Project | Category | View Status | Date Submitted | Last Update |
0003855 | Zandronum | [All Projects] Suggestion | public | 2020-08-10 19:05 | 2020-08-10 19:05 |
Reporter | Filystea | ||||
Assigned To | |||||
Priority | none | Severity | feature | Reproducibility | always |
Status | new | Resolution | open | ||
Platform | openbdsm | OS | OS Version | ||
Product Version | |||||
Target Version | Fixed in Version | ||||
Summary | 0003855: Somehow on Linux this was never poping out. | ||||
Description | Each time i compile I hit this. upnpnat/xmlParser.c│; pp:663:27: error: cast from pointer to smaller type 'char' loses information lpszNew[cbData] = (TCHAR)NULL HERE: // Duplicate a given string. LPTSTR stringDup(LPCTSTR lpszData, int cbData) { if (lpszData==NULL) return NULL; LPTSTR lpszNew; if (cbData==0) cbData=(int)_tcslen(lpszData); lpszNew = (LPTSTR)malloc((cbData+1) * sizeof(TCHAR)); if (lpszNew) { memcpy(lpszNew, lpszData, (cbData) * sizeof(TCHAR)); // Here was NULL instead of '\0' lpszNew[cbData] = (TCHAR)'\0'; } return lpszNew; } Feels like I hit some forgotten code. | ||||
Steps To Reproduce | Cumpile | ||||
Additional Information | God forbid | ||||
Tags | No tags attached. | ||||
Relationships | |||||
Attached Files | |||||
Issue History | |||||
Date Modified | Username | Field | Change | ||
2020-08-10 19:05 | Filystea | New Issue |
There are no notes attached to this issue. |