Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:12.2:ARM
swig
swig-2.0.4-guile2.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File swig-2.0.4-guile2.patch of Package swig
Index: swig-2.0.4/Lib/guile/guile_scm_run.swg =================================================================== --- swig-2.0.4.orig/Lib/guile/guile_scm_run.swg +++ swig-2.0.4/Lib/guile/guile_scm_run.swg @@ -60,16 +60,17 @@ static swig_module_info *SWIG_Guile_GetM SWIGINTERN char * SWIG_Guile_scm2newstr(SCM str, size_t *len) { #define FUNC_NAME "SWIG_Guile_scm2newstr" - char *ret; + char *ret, *tmp; size_t l; SCM_ASSERT (SCM_STRINGP(str), str, 1, FUNC_NAME); - l = SCM_STRING_LENGTH(str); + tmp = scm_to_utf8_string(str); + memcpy(ret, tmp, l); + free(tmp); ret = (char *) SWIG_malloc( (l + 1) * sizeof(char)); if (!ret) return NULL; - memcpy(ret, SCM_STRING_CHARS(str), l); ret[l] = '\0'; if (len) *len = l; return ret;
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