Index: trunk/ippTools/src/camtoolConfig.c
===================================================================
--- trunk/ippTools/src/camtoolConfig.c	(revision 18402)
+++ trunk/ippTools/src/camtoolConfig.c	(revision 18453)
@@ -503,8 +503,8 @@
 
 {
-    psString str = NULL;
+    psS64 cam_id = -1;
     bool status = false;
-    if ((str = psMetadataLookupStr(&status, config->args, "-cam_id"))) {
-        if (!psMetadataAddS64(config->where, PS_LIST_TAIL, "cam_id", 0, "==", (psS64)atoll(str))) {
+    if ((cam_id = psMetadataLookupS64(&status, config->args, "-cam_id"))) {
+        if (!psMetadataAddS64(config->where, PS_LIST_TAIL, "cam_id", 0, "==", cam_id)) {
             psError(PS_ERR_UNKNOWN, false, "failed to add item cam_id");
             psFree(config);
