diff --git a/Makefile b/Makefile index 44dce18..d6843b4 100644 --- a/Makefile +++ b/Makefile @@ -25,7 +25,7 @@ DESCRIPTION = CS50 Library for C MAINTAINER = CS50 <sysadmins@cs50.harvard.edu> NAME = libcs50 OLD_NAMES = lib50-c library50-c -VERSION = 7.2.1 +VERSION = 7.2.2 .PHONY: bash bash: diff --git a/src/cs50.c b/src/cs50.c index 70753f3..09e9833 100644 --- a/src/cs50.c +++ b/src/cs50.c @@ -277,7 +277,7 @@ static string *strings = NULL; string get_string(void) { // check whether we have room for another string - if (allocations == SIZE_MAX) + if (allocations * sizeof(string) == SIZE_MAX) { return NULL; }