projects
/
deliverable
/
binutils-gdb.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
ubsan: microblaze: left shift cannot be represented in type 'int'
[deliverable/binutils-gdb.git]
/
gas
/
sb.c
diff --git
a/gas/sb.c
b/gas/sb.c
index 596f20fb89c2a6cf3ebf1670f4d48c943d5f9132..a8cfc785897a94f05bccdfa618884261c3eaffca 100644
(file)
--- a/
gas/sb.c
+++ b/
gas/sb.c
@@
-1,5
+1,5
@@
/* sb.c - string buffer manipulation routines
/* sb.c - string buffer manipulation routines
- Copyright (C) 1994-201
5
Free Software Foundation, Inc.
+ Copyright (C) 1994-201
9
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
@@
-59,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;
}
@@
-147,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.023528 seconds
and
4
git commands to generate.