Skip to content

Commit

Permalink
Fix typo.
Browse files Browse the repository at this point in the history
  • Loading branch information
Marco van Wieringen committed Feb 27, 2014
1 parent 2ff6f9a commit b3cb88f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/stored/backends/object_store_device.c
Expand Up @@ -126,7 +126,7 @@ int object_store_device::d_open(const char *pathname, int flags, int mode)
* Strip any .conf prefix from the libdroplet profile name.
*/
len = strlen(m_object_configstring);
if (bstrcasecmp(m_object_configstring + (len - 5), ".conf")) {
if (len > 8 && bstrcasecmp(m_object_configstring + (len - 8), ".profile")) {
m_object_configstring[len - 5] = '\0';
}
}
Expand Down

0 comments on commit b3cb88f

Please sign in to comment.