Anonymous | Login | Signup for a new account | 2025-09-07 11:53 UTC | ![]() |
My View | View Issues | Change Log | Roadmap | Zandronum Issue Support Ranking | Rules | My Account |
View Issue Details [ Jump to Notes ] | [ Issue History ] [ Print ] | ||||||||||||
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 | ||||||||||||
Attached Files | |||||||||||||
Only registered users can voice their support. Click here to register, or here to log in. | |
Supporters: | No one explicitly supports this issue yet. |
Opponents: | No one explicitly opposes this issue yet. |
![]() |
|||
Date Modified | Username | Field | Change |
2020-08-10 19:05 | Filystea | New Issue |
Copyright © 2000 - 2025 MantisBT Team |