Lines Matching refs:len
404 int len; in GetStashFileName() local
419 len = strlen(STASH_DIRECTORY_BASE) + 1 + strlen(base) + 1 + strlen(id) + strlen(postfix) + 1; in GetStashFileName()
420 fn = malloc(len); in GetStashFileName()
423 fprintf(stderr, "failed to malloc %d bytes for fn\n", len); in GetStashFileName()
427 res = snprintf(fn, len, STASH_DIRECTORY_BASE "/%s/%s%s", base, id, postfix); in GetStashFileName()
429 if (res < 0 || res >= len) { in GetStashFileName()
448 int len; in EnumerateStash() local
470 len = strlen(dirname) + 1 + strlen(item->d_name) + 1; in EnumerateStash()
471 fn = malloc(len); in EnumerateStash()
474 fprintf(stderr, "failed to malloc %d bytes for fn\n", len); in EnumerateStash()
478 res = snprintf(fn, len, "%s/%s", dirname, item->d_name); in EnumerateStash()
480 if (res < 0 || res >= len) { in EnumerateStash()
1321 size_t len = 0; in PerformCommandDiff() local
1346 len = strtoul(value, NULL, 0); in PerformCommandDiff()
1374 patch_value.size = len; in PerformCommandDiff()