From 2ba08ac89085aa3a0dbc7377278fcc001db48095 Mon Sep 17 00:00:00 2001 From: Ralf Jung Date: Mon, 11 Apr 2022 17:54:41 -0400 Subject: [PATCH] fix code snippet --- personal/_posts/2022-04-11-provenance-exposed.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/personal/_posts/2022-04-11-provenance-exposed.md b/personal/_posts/2022-04-11-provenance-exposed.md index 317cc30..56b7203 100644 --- a/personal/_posts/2022-04-11-provenance-exposed.md +++ b/personal/_posts/2022-04-11-provenance-exposed.md @@ -108,8 +108,8 @@ static int uwu(int *restrict x, int *restrict y) { } int main() { - int i = 0; - int res = uwu(&i, &i); + int i[2] = {0, 0}; + int res = uwu(&i[0], &i[1]); // Now this prints 0! printf("%d\n", res); } -- 2.30.2