i can't believe i released this with a bug

This commit is contained in:
ari melody 2024-02-11 00:43:00 +00:00
parent e8a8377330
commit bb911ac8e4
Signed by: ari
GPG key ID: CF99829C92678188

4
main.c
View file

@ -31,11 +31,11 @@ int main() {
printf("please wait...\n");
char* wtf = (char*) malloc(size * sizeof(char));
for (int i = 0; i < size; i++) {
for (long long unsigned int i = 0; i < size; i++) {
wtf[i] = 255;
}
printf("%d bytes of heap memory has been allocated. you are insane.\n", size);
printf("%llu bytes of heap memory has been allocated. you are insane.\n", size);
printf("press any key to release this memory, or CTRL+C to exit the program.\n");
getchar();