projects
/
mmh
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Trim trailing whitespace in scan and show
[mmh]
/
sbr
/
trimcpy.c
diff --git
a/sbr/trimcpy.c
b/sbr/trimcpy.c
index
64dd848
..
ffa6b57
100644
(file)
--- a/
sbr/trimcpy.c
+++ b/
sbr/trimcpy.c
@@
-9,6
+9,8
@@
*/
#include <h/mh.h>
+#include <h/utils.h>
+#include <ctype.h>
char *
@@
-35,5
+37,5
@@
trimcpy(unsigned char *cp)
}
/* now return a copy */
- return getcpy(cp);
+ return mh_xstrdup(cp);
}