diff --git a/src/common_io.c b/src/common_io.c
index a22964dbf1531bbbbf42aab6b7efe8ab9efbca37..a09f9c9ac37d280a4ae2838b3b7e36556e81047a 100644
--- a/src/common_io.c
+++ b/src/common_io.c
@@ -198,7 +198,7 @@ void writeStringAttribute(hid_t grp, char* name, const char* str, int length) {
 
   h_err = H5Tset_size(h_type, length);
   if (h_err < 0) {
-    error("Error while resizing attribute tyep to '%i'.", length);
+    error("Error while resizing attribute type to '%i'.", length);
   }
 
   h_attr = H5Acreate1(grp, name, h_type, h_space, H5P_DEFAULT);