Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:pbleser:backports
libwx_gtk2-2-6
wxGTK-fix_unchecked_return_value.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File wxGTK-fix_unchecked_return_value.patch of Package libwx_gtk2-2-6
--- src/common/string.cpp.orig 2009-04-14 01:19:59.000000000 +0200 +++ src/common/string.cpp 2009-04-14 01:22:03.000000000 +0200 @@ -41,6 +41,7 @@ #include <ctype.h> #include <string.h> #include <stdlib.h> +#include <cstdio> #ifdef __SALFORDC__ #include <clib.h> @@ -503,7 +504,7 @@ #ifdef __WXDEBUG__ void *p = #endif - realloc(pData, sizeof(wxStringData) + (pData->nDataLength + 1)*sizeof(wxChar)); + if (realloc(pData, sizeof(wxStringData) + (pData->nDataLength + 1)*sizeof(wxChar)) == NULL) { perror("failed to realloc memory"); exit(1); } // we rely on a reasonable realloc() implementation here - so far I haven't // seen any which wouldn't behave like this
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor