#include "readelf.h"
#ifndef lint
-FILE_RCSID("@(#)$File: readelf.c,v 1.65 2007/10/23 19:54:35 christos Exp $")
+FILE_RCSID("@(#)$File: readelf.c,v 1.66 2007/11/07 21:26:32 christos Exp $")
#endif
#ifdef ELFCORE
&nbuf[doff + prpsoffsets(i)];
for (cp = cname; *cp && isprint(*cp); cp++)
continue;
+ if (cp > cname)
+ cp--;
if (file_printf(ms, ", from '%.*s'",
- (int)(cp - cname), cp) == -1)
+ (int)(cp - cname), cname) == -1)
return size;
*flags |= FLAGS_DID_CORE;
return size;