Skip to content
Commit 33817811 authored by Tom Tromey's avatar Tom Tromey
Browse files

Fix off-by-one error in compute_delayed_physnames

compute_delayed_physnames does this:

	  size_t len = strlen (physname);
...
	      if (physname[len] == ')') /* shortcut */
		break;

However, physname[len] will always be \0.

This patch changes it to the correct len-1.

parent de501587
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment