Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 310022 Details for
Bug 452469
cscope invalid file format errors when using inverted indicies
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
patch to truncate paths at max length
cscope.patch (text/plain), 837 bytes, created by
Neil Horman
on 2008-06-23 11:45:39 UTC
(
hide
)
Description:
patch to truncate paths at max length
Filename:
MIME Type:
Creator:
Neil Horman
Created:
2008-06-23 11:45:39 UTC
Size:
837 bytes
patch
obsolete
>diff -up cscope-15.5/src/dir.c.orig cscope-15.5/src/dir.c >--- cscope-15.5/src/dir.c.orig 2008-06-23 07:42:37.000000000 -0400 >+++ cscope-15.5/src/dir.c 2008-06-23 07:42:31.000000000 -0400 >@@ -672,14 +672,23 @@ addsrcfile(char *path) > { > struct listitem *p; > int i; >+ char marker = '\0'; > > /* make sure there is room for the file */ > if (nsrcfiles == msrcfiles) { > msrcfiles += SRCINC; > srcfiles = myrealloc(srcfiles, msrcfiles * sizeof(char *)); > } >+ /* Truncate the path at our list length */ >+ if (strlen(path) >= PATHLEN) { >+ marker = path[PATHLEN]; >+ path[PATHLEN] = '\0'; >+ } > /* add the file to the list */ > srcfiles[nsrcfiles++] = stralloc(compath(path)); >+ if (marker != '\0') >+ path[PATHLEN] = marker; >+ > p = mymalloc(sizeof(struct listitem)); > p->text = stralloc(compath(path)); > i = hash(p->text) % HASHMOD;
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 452469
:
310022
|
310032