~gpanders/wk

e9bbe2322f20e78230d3670ec254184f47d1d92b — Greg Anders a month ago 2b92540
Increase buffer size for strftime
1 files changed, 1 insertions(+), 1 deletions(-)

M src/zettel.zig
M src/zettel.zig => src/zettel.zig +1 -1
@@ 321,7 321,7 @@ fn strftime(allocator: *mem.Allocator, format: [:0]const u8) ![]const u8 {
    var t = c.time(0);
    var tmp = c.localtime(&t);

    var buf = try allocator.allocSentinel(u8, 2 * format.len, 0);
    var buf = try allocator.allocSentinel(u8, 128, 0);
    _ = c.strftime(buf.ptr, buf.len, format.ptr, tmp);
    return allocator.shrink(buf, mem.len(buf.ptr));
}