Author: cwittich Date: Thu Dec 18 02:25:33 2008 New Revision: 38165
URL: http://svn.reactos.org/svn/reactos?rev=38165&view=rev Log: fix some crashes
Modified: trunk/tools/sysreg2/raddr2line.c
Modified: trunk/tools/sysreg2/raddr2line.c URL: http://svn.reactos.org/svn/reactos/trunk/tools/sysreg2/raddr2line.c?rev=3816... ============================================================================== --- trunk/tools/sysreg2/raddr2line.c [iso-8859-1] (original) +++ trunk/tools/sysreg2/raddr2line.c [iso-8859-1] Thu Dec 18 02:25:33 2008 @@ -42,7 +42,7 @@ char PkgData[80]; char emptystr[] = "";
- if ((strchr(Data, '>')) && (!strchr(Data, ')'))) + if ((strstr(Data, ":>")) && (!strchr(Data, ')'))) { sep = strchr(Data, ':'); if (sep) @@ -57,7 +57,7 @@ }
sep = strchr(Data, '+'); - if ((sep) && strchr(Data, ':')) + if ((sep) && strstr(Data, ":\")) { sep2 = strchr(Data + (sep - Data), ' '); strncpy(Addr, Data + (sep - Data + 1), (int) (sep2 - sep) - 1);