From 1c6a6c4c7753e067468010070544b903a054069e Mon Sep 17 00:00:00 2001 From: Sascha Wildner Date: Thu, 5 Feb 2009 23:21:18 +0100 Subject: [PATCH] installer: Use unsigned long for holding hw.physmem's value. The previous signed long led to the wrong calculation of default swap size on machines with >2GB main memory. Reported-by: corecode Dragonfly-bug: --- contrib/bsdinstaller-1.1.6/src/lib/libinstaller/survey.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contrib/bsdinstaller-1.1.6/src/lib/libinstaller/survey.c b/contrib/bsdinstaller-1.1.6/src/lib/libinstaller/survey.c index f8072d0948..a1df60118c 100644 --- a/contrib/bsdinstaller-1.1.6/src/lib/libinstaller/survey.c +++ b/contrib/bsdinstaller-1.1.6/src/lib/libinstaller/survey.c @@ -141,7 +141,7 @@ parse_slice_info(char *line, int *slice, int survey_storage(struct i_fn_args *a) { - long mem = 0; + unsigned long mem = 0; char disks[256], line[256]; char *disk, *disk_ptr; struct commands *cmds; -- 2.11.4.GIT