summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xstr/str.c2
-rwxr-xr-xstr/str.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/str/str.c b/str/str.c
index 7767e99..052ec48 100755
--- a/str/str.c
+++ b/str/str.c
@@ -359,7 +359,7 @@ str file_to_nstr(char *filename, u32 len){
void str_to_file(str s, char *filename){
FILE *fp = fopen(filename, "r");
str_to_fp(s, fp);
- fclose(fp)
+ fclose(fp);
}
str map_file(char *filename){
diff --git a/str/str.h b/str/str.h
index 7a386c4..dbf91b9 100755
--- a/str/str.h
+++ b/str/str.h
@@ -113,7 +113,7 @@ str fp_to_nstr(FILE *fp, u32 len);
str file_to_str(char *filename);
str file_to_nstr(char *filename, u32 len);
#define str_to_fd(s, fd) write(fd, s.ptr, s.len)
-#define str_to_fp(s, fp) fwrite(s.ptr, sizeof(str.ptr[0]), s.len, fp)
+#define str_to_fp(s, fp) fwrite(s.ptr, sizeof(s.ptr[0]), s.len, fp)
void str_to_file(str s, char *filename);
str map_file(char *filename);