diff options
Diffstat (limited to 'gdb/utils.c')
-rw-r--r-- | gdb/utils.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/gdb/utils.c b/gdb/utils.c index b014d3c..cce338d 100644 --- a/gdb/utils.c +++ b/gdb/utils.c @@ -448,9 +448,12 @@ savestring (ptr, size) return p; } +/* The "const" is so it compiles under DGUX (which prototypes strsave + in <string.h>. FIXME: This should be named "xstrsave", shouldn't it? + Doesn't real strsave return NULL if out of memory? */ char * strsave (ptr) - char *ptr; + const char *ptr; { return savestring (ptr, strlen (ptr)); } |