Index: /branches/rel_apv_10_7_3/usr/click/bin/heartbeat/heartbeat.c
===================================================================
--- /branches/rel_apv_10_7_3/usr/click/bin/heartbeat/heartbeat.c	(revision 40104)
+++ /branches/rel_apv_10_7_3/usr/click/bin/heartbeat/heartbeat.c	(working copy)
@@ -780,8 +780,8 @@
                         logging("[heartbeat]Current device is enabled successfully and update license.", 1);
                         bandwidth_volume_update(bandwidth_limit);
                         feactl_p->max_vapv_bandwidth = bandwidth_limit * 1000000ULL;
-			char buf[16];
-			int len = snprintf(buf, sizeof(buf), "%d\n", feactl_p->max_vapv_bandwidth);
+			char buf[32];
+			int len = snprintf(buf, sizeof(buf), "%llu\n", feactl_p->max_vapv_bandwidth);
 			int fd = open("/ca/etc/bw_cm", O_WRONLY | O_CREAT | O_TRUNC, 0644);
 			if (fd != -1) {
 				write(fd, buf, len);
@@ -801,8 +801,8 @@
                 } else if (heartbeat_info.bandwidth_limit != bandwidth_limit) {
                     bandwidth_volume_update(bandwidth_limit);
                     feactl_p->max_vapv_bandwidth = bandwidth_limit * 1000000ULL;
-		    char buf[16];
-		    int len = snprintf(buf, sizeof(buf), "%d\n", feactl_p->max_vapv_bandwidth);
+		    char buf[32];
+		    int len = snprintf(buf, sizeof(buf), "%llu\n", feactl_p->max_vapv_bandwidth);
 		    int fd = open("/ca/etc/bw_cm", O_WRONLY | O_CREAT | O_TRUNC, 0644);
 		    if (fd != -1) {
 			    write(fd, buf, len);
Index: /branches/rel_apv_10_7_3/usr/click/bin/vtch/vtch-guest.c
===================================================================
--- /branches/rel_apv_10_7_3/usr/click/bin/vtch/vtch-guest.c	(revision 40100)
+++ /branches/rel_apv_10_7_3/usr/click/bin/vtch/vtch-guest.c	(working copy)
@@ -352,8 +352,8 @@
 			    syslog(LOG_EMERG, "CMD_DEL_LICENSE : read bandwidth from file\n");
 			    FILE *f = fopen("/ca/etc/bw_cm", "r");
 			    if (f) {
-				fscanf(f, "%d", &(feactl_p->max_vapv_bandwidth));
-				syslog(LOG_EMERG, "CMD_DEL_LICENSE : setting bandwidth to : %d\n", feactl_p->max_vapv_bandwidth);
+				fscanf(f, "%llu", &(feactl_p->max_vapv_bandwidth));
+				syslog(LOG_EMERG, "CMD_DEL_LICENSE : setting bandwidth to : %llu\n", feactl_p->max_vapv_bandwidth);
 				fclose(f);
 			    }
 			}
Index: /branches/rel_apv_10_7_3/usr/click/lib/libfeactl/feactl.c
===================================================================
--- /branches/rel_apv_10_7_3/usr/click/lib/libfeactl/feactl.c	(revision 40100)
+++ /branches/rel_apv_10_7_3/usr/click/lib/libfeactl/feactl.c	(working copy)
@@ -3180,18 +3180,18 @@
 			syslog(LOG_EMERG, "licensepermit is enabled.\n");
 			int fd = open("/ca/etc/bw_cm", O_RDONLY);
 			if (fd != -1) {
-				char buf[16];
+				char buf[32];
 				ssize_t bytes = read(fd, buf, sizeof(buf) - 1);
 				syslog(LOG_EMERG, "set_license_limits : read bandwidth from file\n");
 				if (bytes > 0) {
 					buf[bytes] = '\0';
-					feactl_p->max_vapv_bandwidth = atoi(buf);
-					syslog(LOG_EMERG, "set_license_limits : setting bandwidth to : %d\n", feactl_p->max_vapv_bandwidth);
+					feactl_p->max_vapv_bandwidth = atoll(buf);
+					syslog(LOG_EMERG, "set_license_limits : setting bandwidth to : %llu\n", feactl_p->max_vapv_bandwidth);
 				}
 				close(fd);
 			}
 		} else {
-			syslog(LOG_EMERG, "set_license_limits : licensepermit not enabled. setting bandwidth to : %d\n", feactl_p->max_vapv_bandwidth);
+			syslog(LOG_EMERG, "set_license_limits : licensepermit not enabled. setting bandwidth to : %llu\n", feactl_p->max_vapv_bandwidth);
 		}
 	} else {
 		syslog(LOG_USER | LOG_INFO, "activation server not enabled");
