commit - d475dd0dd4e08388c409cffce81082d0fbe3843f
commit + 72fb036324e963e523ff5a21dd42eb2957bd816f
blob - 3d2c3d676cee7da0a119cad2ac529069548d7e13
blob + dcf3756416dd2efe580a0c3d17559df93f3d0ba3
--- lib/pack.c
+++ lib/pack.c
return got_error(GOT_ERR_BAD_PATH);
/* Path must point to a pack index or to a pack file. */
- if (strcmp(dot, ".idx") == 0) {
+ if (strcmp(dot, GOT_PACKIDX_SUFFIX) == 0) {
const struct got_error *err = NULL;
char *path_pack;
char base_path[PATH_MAX];
/* Copy up to and excluding ".idx". */
if (strlcpy(*path_packfile, packidx->path_packidx,
- size - strlen(".idx") - 1) >= size)
+ size - strlen(GOT_PACKIDX_SUFFIX) - 1) >= size)
return got_error(GOT_ERR_NO_SPACE);
if (strlcat(*path_packfile, GOT_PACKFILE_SUFFIX, size) >= size)