projects
/
yaz-moved-to-github.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
SGML reader uses own isspace - it doesn't do 8-bit on WIN32!
[yaz-moved-to-github.git]
/
util
/
nmemsdup.c
diff --git
a/util/nmemsdup.c
b/util/nmemsdup.c
index
a17f9cf
..
74841d4
100644
(file)
--- a/
util/nmemsdup.c
+++ b/
util/nmemsdup.c
@@
-4,7
+4,10
@@
* Sebastian Hammer, Adam Dickmeiss
*
* $Log: nmemsdup.c,v $
* Sebastian Hammer, Adam Dickmeiss
*
* $Log: nmemsdup.c,v $
- * Revision 1.1 1997-09-17 12:10:42 adam
+ * Revision 1.2 1998-02-11 11:53:36 adam
+ * Changed code so that it compiles as C++.
+ *
+ * Revision 1.1 1997/09/17 12:10:42 adam
* YAZ version 1.4.
*
*/
* YAZ version 1.4.
*
*/
@@
-14,7
+17,7
@@
char *nmem_strdup (NMEM mem, const char *src)
{
char *nmem_strdup (NMEM mem, const char *src)
{
- char *dst = nmem_malloc (mem, strlen(src)+1);
+ char *dst = (char *)nmem_malloc (mem, strlen(src)+1);
strcpy (dst, src);
return dst;
}
strcpy (dst, src);
return dst;
}