summaryrefslogtreecommitdiff
path: root/namespace.c
diff options
context:
space:
mode:
authorHiroshi SHIBATA <[email protected]>2025-05-19 09:46:03 +0900
committerHiroshi SHIBATA <[email protected]>2025-05-19 09:46:03 +0900
commit72387ebd0e9520f0730bc959e2dff14d045c5d83 (patch)
tree79e607626b801e5bbb3a1acf62b14deb102258bf /namespace.c
parentaa0f689bf45352c4a592e7f1a044912c40435266 (diff)
Fix typos: misspell -w -error -source=text namespace.c
Diffstat (limited to 'namespace.c')
-rw-r--r--namespace.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/namespace.c b/namespace.c
index 3e9abe8df2..03d71cfd62 100644
--- a/namespace.c
+++ b/namespace.c
@@ -725,7 +725,7 @@ copy_ext_file_error(char *message, size_t size, int copy_retvalue, char *src_pat
case 4:
snprintf(message, size, "failed to write the extension path: %s", dst_path);
default:
- rb_bug("unkown return value of copy_ext_file: %d", copy_retvalue);
+ rb_bug("unknown return value of copy_ext_file: %d", copy_retvalue);
}
return message;
}
@@ -832,7 +832,7 @@ escaped_basename(char *path, char *fname, char *rvalue)
leaf = path;
// `leaf + 1` looks uncomfortable (when leaf == path), but fname must not be the top-dir itself
while ((found = strstr(leaf + 1, fname)) != NULL) {
- leaf = found; // find the last occurence for the path like /etc/my-crazy-lib-dir/etc.so
+ leaf = found; // find the last occurrence for the path like /etc/my-crazy-lib-dir/etc.so
}
strcpy(rvalue, leaf);
for (pos = rvalue; *pos; pos++) {