Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Evergreen:11.1
ed
ed-0.2-strip-escapes.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File ed-0.2-strip-escapes.patch of Package ed
Index: ed-0.2/main.c =================================================================== --- ed-0.2.orig/main.c +++ ed-0.2/main.c @@ -1636,17 +1636,18 @@ has_trailing_escape (s, t) } -/* strip_escapes: return copy of escaped string of at most length PATH_MAX */ +/* return unescaped copy of escaped string */ char * strip_escapes (s) char *s; { static char *file = NULL; static int filesz = 0; + const int len = strlen( s ); int i = 0; - REALLOC (file, filesz, PATH_MAX + 1, NULL); + REALLOC (file, filesz, len + 1, NULL); /* assert: no trailing escape */ while (file[i++] = (*s == '\\') ? *++s : *s) s++;
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