We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents e0cfe98 + ca23eeb commit 731a152Copy full SHA for 731a152
Makefile
@@ -25,7 +25,7 @@ DESCRIPTION = CS50 Library for C
25
MAINTAINER = CS50 <sysadmins@cs50.harvard.edu>
26
NAME = libcs50
27
OLD_NAMES = lib50-c library50-c
28
-VERSION = 7.2.1
+VERSION = 7.2.2
29
30
.PHONY: bash
31
bash:
src/cs50.c
@@ -277,7 +277,7 @@ static string *strings = NULL;
277
string get_string(void)
278
{
279
// check whether we have room for another string
280
- if (allocations == SIZE_MAX)
+ if (allocations * sizeof(string) == SIZE_MAX)
281
282
return NULL;
283
}
0 commit comments