summaryrefslogtreecommitdiff
path: root/src/upb_string.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/upb_string.h')
-rw-r--r--src/upb_string.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/upb_string.h b/src/upb_string.h
index c0d14d5..2c0303d 100644
--- a/src/upb_string.h
+++ b/src/upb_string.h
@@ -44,7 +44,7 @@ typedef struct _upb_string {
// Used if this is a slice of another string.
struct _upb_string *src;
// Used if this string is referencing external unowned memory.
- upb_stomic_refcount_t reader_count;
+ upb_atomic_refcount_t reader_count;
} extra;
} upb_string;
@@ -126,7 +126,7 @@ INLINE void upb_strcpylen(upb_string *dest, const void *src, upb_strlen_t len) {
// Replaces the contents of "dest" with the contents of "src".
INLINE void upb_strcpy(upb_string *dest, upb_string *src) {
- upb_strcpylen(dest, upb_string_getrobuf(src), upb_strlen(src));
+ upb_strcpylen(dest, upb_string_getrobuf(src), upb_string_len(src));
upb_string_endread(src);
}
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback