projects
/
deliverable
/
binutils-gdb.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix crash when exiting TUI with gdb -tui
[deliverable/binutils-gdb.git]
/
gas
/
sb.c
diff --git
a/gas/sb.c
b/gas/sb.c
index 7710cbc0c89574354a4ce78354d9e8169a59b942..8b5ea8a56e269e1cf968d5e6c6bb7a0cd529817c 100644
(file)
--- a/
gas/sb.c
+++ b/
gas/sb.c
@@
-1,6
+1,5
@@
/* sb.c - string buffer manipulation routines
/* sb.c - string buffer manipulation routines
- Copyright 1994, 1995, 2000, 2003, 2005, 2006, 2007, 2009, 2012
- Free Software Foundation, Inc.
+ Copyright (C) 1994-2020 Free Software Foundation, Inc.
Written by Steve and Judy Chamberlain of Cygnus Support,
sac@cygnus.com
Written by Steve and Judy Chamberlain of Cygnus Support,
sac@cygnus.com
@@
-60,7
+59,7
@@
static void sb_check (sb *, size_t);
void
sb_build (sb *ptr, size_t size)
{
void
sb_build (sb *ptr, size_t size)
{
- ptr->ptr =
xmalloc (
size + 1);
+ ptr->ptr =
XNEWVEC (char,
size + 1);
ptr->max = size;
ptr->len = 0;
}
ptr->max = size;
ptr->len = 0;
}
@@
-148,7
+147,7
@@
sb_check (sb *ptr, size_t len)
#endif
max -= MALLOC_OVERHEAD + 1;
ptr->max = max;
#endif
max -= MALLOC_OVERHEAD + 1;
ptr->max = max;
- ptr->ptr =
xrealloc (
ptr->ptr, max + 1);
+ ptr->ptr =
XRESIZEVEC (char,
ptr->ptr, max + 1);
}
}
}
}
This page took
0.028055 seconds
and
4
git commands to generate.